找不到 Visual Studio 2013 错误 MS8020 构建工具 v140

Visual Studio 2013 error MS8020 Build tools v140 cannot be found(找不到 Visual Studio 2013 错误 MS8020 构建工具 v140)

本文介绍了找不到 Visual Studio 2013 错误 MS8020 构建工具 v140的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前一直在使用 VS2013 express 没有问题,但是每当我尝试编辑代码时它突然开始崩溃,同时它运行现有代码.

I had previously been using VS2013 express without issue, but suddenly it began crashing whenever I tried edit the code while it ran existing code fine.

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

I tried uninstalling and switching over to VS2015, but it was crashing as well and wasn't compatible with some of my code. So I uninstalled VS2015 and reinstalled VS2013.

新问题是每当我尝试构建解决方案时,都会出现错误MS8020".

The new issue is whenever I try to build a solution it gives the error "MS8020".

完整的错误信息如下

错误 1 ​​错误 MSB8020:v140 的构建工具(平台工具集 ='v140') 找不到.要使用 v140 构建工具构建,请安装 v140 构建工具.或者,您可以升级到通过选择项目"菜单或右键单击解决方案,然后选择升级解决方案...".C:Program Files(x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets 64 5 Bevan

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)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets 64 5 Bevan

推荐答案

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

That's the platform toolset for VS2015. You uninstalled it, therefore it is no longer available.

要更改您的平台工具集:

To change your Platform Toolset:

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

这篇关于找不到 Visual Studio 2013 错误 MS8020 构建工具 v140的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:找不到 Visual Studio 2013 错误 MS8020 构建工具 v140

基础教程推荐