c++ - Visual Studio 2013 错误 MS8020 Build tools v140 找不到

标签 c++ visual-studio-2013 build msbuild

我之前一直在使用 VS2013 express 没有问题,但是当我尝试编辑代码时它突然开始崩溃,而它可以正常运行现有代码。

我尝试卸载并切换到 VS2015,但它也崩溃了,并且与我的某些代码不兼容。所以我卸载了VS2015并重新安装了VS2013。

新问题是每当我尝试构建解决方案时,它都会给出错误“MS8020”。

完整的错误信息如下所示

Error 1 error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets 64 5 Bevan

最佳答案

这是 VS2015 的平台工具集。您已卸载它,因此它不再可用。

要更改您的平台工具集:

  1. 右键单击您的项目,转到“属性”。
  2. 在配置属性下,转到常规。
  3. 将您的平台工具集更改为可用的工具集之一。

关于c++ - Visual Studio 2013 错误 MS8020 Build tools v140 找不到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31792663/

相关文章:

c++ - 是否可以将函数声明放在未命名的命名空间中?

C++ 协作

asp.net - 不要在 ASP.NET 中发布特定文件夹

asp.net - Web 表单和带有母版页的 Web 表单之间的区别?

ruby - rake 使用 -m 两次调用任务

javascript - YUI3 移位器更改构建目录

c++ - int() 导致覆盖参数

c++ - C++ 中的 Random() 效率

visual-studio - 在 Visual Studio 中,如何将 'Full Screen' 图标复制到工具栏?

azure - 使用 WebJob 部署时网站未更新