问题描述
我之前一直在使用 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".
完整的错误信息如下所示
The full error message is seen below
错误 1 错误 MSB8020:v140 的构建工具(平台工具集 ='v140') 找不到.要使用 v140 构建工具进行构建,请安装 v140 构建工具.或者,您可以升级到当前的 Visual Studio 工具,通过选择 Project 菜单或右键单击解决方案,然后选择升级解决方案...".C:Program Files(x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.Cpp.Platform.targets 64 5 贝文
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:
- 右键单击您的项目,转到属性".
- 在配置属性下,转到常规.
- 将您的平台工具集更改为可用的工具集之一.
这篇关于Visual Studio 2013 错误 MS8020 Build tools v140 找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!