【问题标题】:how to install vcpkg for vs code?如何为vs代码安装vcpkg?
【发布时间】: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,但我遇到了同样的错误。我该怎么办?

【问题讨论】:

标签: c++ c vcpkg


【解决方案1】:

在 Linux 或 macOS 上运行 vcpkg integration install 以自定义 Visual Studio Code。此命令设置 vcpkg 枚举的位置并为源文件启用 IntelliSense。

看看这个网页:https://docs.microsoft.com/ru-ru/cpp/build/vcpkg?view=msvc-160#integrate-with-visual-studio-code-linuxmacos

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-01-31
    • 1970-01-01
    • 1970-01-01
    • 2020-06-27
    • 2023-03-10
    • 2023-01-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多