2014-02-05 142 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

相關問題