简体   繁体   English

如何为 vs 代码安装 vcpkg?

[英]how to install vcpkg for vs code?

I tried to install vcpkg for VS code and in a PowerShell Window.我尝试为 VS 代码和 PowerShell 窗口安装 vcpkg。 I had this error:我有这个错误:

Could not find MSBuild version with C ++ support. VS2015, VS2017 or VS2019 (with C ++) must be installed.

So I installed Visual studio and I have the same error.所以我安装了 Visual Studio 并且出现了同样的错误。 What should I do?我该怎么办?

Run vcpkg integration install to customize Visual Studio Code on Linux or macOS.运行vcpkg integration install以在 Linux 或 macOS 上自定义Visual Studio Code This command sets the location of the vcpkg enum and enables IntelliSense for the source files.此命令设置 vcpkg 枚举的位置并为源文件启用 IntelliSense。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM