如何在Visual Studio 2015社区上安装Visual Studio Build Tools 2010? [英] How to install Visual Studio Build Tools 2010 on Visual Studio 2015 Community?

查看:1122
本文介绍了如何在Visual Studio 2015社区上安装Visual Studio Build Tools 2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010上创建了一个项目.当我尝试在Visual Studio 2015 Community Edition上运行该项目时,出现以下错误,

I have a project created on Visual Studio 2010. When I try to run the project on Visual Studio 2015 Community edition I get the error below,

严重性代码描述项目文件行 错误MSB8020找不到Visual Studio 2010的生成工具(平台工具集='v100').要使用v100生成工具进行生成,请安装Visual Studio 2010生成工具.或者,您可以通过选择项目"菜单或右键单击解决方案,然后选择重新定位解决方案",升级到当前的Visual Studio工具.图形C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Microsoft.Cpp.Platform.targets 55

Severity Code Description Project File Line Error MSB8020 The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 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". graphics C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets 55

当我尝试使用Visual Studio 2015生成工具进行构建时,我遇到了大约1500多个错误.

And when I tried to build it with Visual Studio 2015 Build Tools I encountered about 1500+ errors.

有什么办法可以使项目正常工作吗?

Is there any way to make the project work?

推荐答案

如果无法安装VS2010,请 Microsoft Visual C ++ 2010 Service Pack 1编译器Windows SDK 7.1的更新.但是请注意,如果安装这些组件,则在以后决定安装VS2010时可能会遇到问题,安装程序中存在一些错误,要求您严格按照顺序安装组件.另外,如果您的代码使用MFC或ATL,则必须安装VS2010,而仅安装Windows SDK是不够的.

If you can't install VS2010, Windows SDK for Windows 7 contains needed compiler tools (v100), you may actually skip installing the SDK itself and install only the compiler tools, headers and libs. Please note, that the compiler included in Windows SDK is the same that VS2010 has, but VS2010 SP1 has a bit newer compiler. If you need that, you'll also need to install Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1. But be aware, that if you install these, you may have issues later if you decide to install VS2010, there are bugs in installer that requires you to install components in strict order. Also, if your code uses MFC or ATL you must install VS2010, installing Windows SDK will not be enough.

这篇关于如何在Visual Studio 2015社区上安装Visual Studio Build Tools 2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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