找不到 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:
- 右键单击您的项目,转到属性".
- 在配置属性下,转到常规.
- 将您的平台工具集更改为可用工具集之一.
相关文章