【发布时间】:2020-10-31 10:09:07
【问题描述】:
我尝试在 PowerShell 窗口中为 VS 代码安装 vcpkg。我有这个错误:
Could not find MSBuild version with C ++ support. VS2015, VS2017 or VS2019 (with C ++) must be installed.
所以我安装了 Visual Studio,但我遇到了同样的错误。我该怎么办?
【问题讨论】:
我尝试在 PowerShell 窗口中为 VS 代码安装 vcpkg。我有这个错误:
Could not find MSBuild version with C ++ support. VS2015, VS2017 or VS2019 (with C ++) must be installed.
所以我安装了 Visual Studio,但我遇到了同样的错误。我该怎么办?
【问题讨论】:
在 Linux 或 macOS 上运行 vcpkg integration install 以自定义 Visual Studio Code。此命令设置 vcpkg 枚举的位置并为源文件启用 IntelliSense。
【讨论】: