如何在 Visual Studio 2015 Community 上安装 Visual Studio Build Tools 2010?
我在 Visual Studio 2010 上创建了一个项目.当我尝试在 Visual Studio 2015 社区版上运行该项目时,出现以下错误,
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)MSBuildMicrosoft.Cppv4.0V140Microsoft.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)MSBuildMicrosoft.Cppv4.0V140Microsoft.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,适用于 Windows 7 的 Windows SDK 包含所需的编译器工具 (v100),您实际上可以跳过安装 SDK 本身而只安装编译器工具、头文件和库.请注意,Windows SDK 中包含的编译器与 VS2010 相同,但 VS2010 SP1 的编译器要更新一些.如果需要,还需要安装 Microsoft Visual C++ 2010 Service Pack 1 CompilerWindows 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.
相关文章