c++ - Visual Studio 2013 错误 MS8020 Build tools v14

我之前一直在使用 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/

相关文章:

linux - 使用make构建后的.d文件是什么

c# - 使用 CMake 生成 C# 项目

java - Maven 编译器插件总是将一组源检测为 "stale"

c# - 如何强制 VS 2010 跳过未更改的项目的 "builds"?

macos - xcode4:链接器错误:找不到选项的目录

jenkins - 使用 H/1 * * * * 每分钟运行一次 Jenkins 作业

java - 如何在命令行中编译多个java源文件

ios - Xcode 8 无法存档 "Command/usr/bin/codesign faile

ios - React-native:如何从 Windows 构建 ios

.net - 复制本地如何工作? log4net.dll 没有被复制到 MyProject 输出目录