在Visual Studio 2015中获取错误MSB8020错误 [英] Getting error MSB8020 Error in visual Studio 2015

查看:60
本文介绍了在Visual Studio 2015中获取错误MSB8020错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我安装了Visual Studio 2015并尝试构建项目。但是,我收到以下错误。

Recently, I installed visual Studio 2015 and tried to build the projects. However, I am getting the following error.

严重程度

代码

描述

项目

文件

抑制状态

错误

MSB8020

构建找不到v120(Platform Toolset ='v120')的工具。要使用v120构建工具进行构建,请安装v120构建工具。 或者,您可以通过选择"项目"菜单升级到当前的Visual Studio工具,或者右键单击
解决方案,然后选择"重新定位解决方案"。

The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 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 "Retarget solution".

C:\Program Files(x86)\ MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets

57

仅供参考,我曾经在2013年的visual studio中构建项目,很长一段时间,我从来没用过它。但是当我将visual studio更新到2015版本时,我收到了这个错误。请让我知道解决方案。

FYI, I used to build the projects in visual studio 2013 and for long time, I never used it. But when I updated the visual studio to 2015 version, I am getting this error. Please let me know the solution.

我试图重新定位解决方案并安装了v120 MSBuild工具。但是,没有什么能够解决这个问题。

I have tried to re-target the solution and installed v120 MSBuild tools. However, nothing was able to resolve the issue.

请告诉我如何解决它。

谢谢

Somu

推荐答案

您好SomuDhabadi,

Hi SomuDhabadi,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

由于您的项目是由Visual Studio 2013创建的,当您使用Visual Studio 2015构建它时,您应该更改平台工具集:
Visual Studio 2013(v120)。

Since your project was created by Visual Studio 2013, when you build it with Visual Studio 2015, you should change the platform toolset: Visual Studio 2013(v120).

右键单击项目 - > ;属性 - >配置属性 - >常规 - >平台工具集,选择
Visual Studio 2013(v120)。

Right click project->Properties->Configuration Properties->General->Platform Toolset, select Visual Studio 2013(v120).


这篇关于在Visual Studio 2015中获取错误MSB8020错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆