2014-02-05 139 views
27

我刚刚格式化了PC并安装了Visual Studio 2013。现在,我想编译一个Visual Studio 2010 C++解决方案而无需转换,并继续定位v100平台工具集。我需要使用Visual Studio 2013为Platform Toolset v100进行编译?

我得到这个错误:

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 "Upgrade Solution...". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets 64 5 TPC30004 

和项目属性我看到,我当然想念所需的工具集。

Project properties with Platform Toolset set to Visual Studio 2010 (v100) (not installed)

我不能改变的目标,因为不能强制XP用户安装新的C++ 2013再分发所以也许我应该安装Visual Studio 2010来解决这个问题,但如果可能的话,我想避免它(目前小SSD和没有太多可用空间)。

还有其他选择吗?

+0

我想问题是缺少'C:\ Program Files文件(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V100'。我的机器一样。试图安装[适用于Microsoft .NET Framework 4.0.3的多目标套件(KB2600213)](https://www.microsoft.com/zh-CN/download/details.aspx?id=29052),但它没有帮助。仍然希望我可以避免安装VS 2010或不得不将应用程序迁移到新版本的框架。 – Palec

回答

21

您需要为此安装Visual Studio 2010。没有替代。

你仍然可以安装到不同的驱动器,以保持内存占用C:尽可能低。

+1

Visual Studio 2010 Express Edition也应该做这个工作,对吧? – Drake

+7

取决于您的项目需要什么http://msdn.microsoft.com/en-us/library/hs24szh9%28v=vs.100%29.aspx – galop1n

+2

[This](http://stackoverflow.com/q/8894654/200443)可以提供帮助。使用Web安装程序,您只能下载VC++部分。 – Maxence

1

还有安装Windows SDK 7.1的选项,它附带相同的VS2010平台工具,并免费提供。与VS2010 Express版本不同,它还包含AMD64(但不是Itanium)版本的工具。

+0

是的,但这不适用于Windows 10,它不受支持。 – nagylzs

相关问题