Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
573 views
in Technique[技术] by (71.8m points)

.net 3.5 - Visual Studio 2012 failing to detect Visual Studio 2008 build tools

I am trying to use Visual Studio 2012 to build a C++ CLI application targeting .NET 3.5.

I've already gotten this working on one machine, by installing Visual Studio 2008, and specifying the v90 platform toolset.

Now I am attempting this on a new machine, and I've installed Visual Studio 2008, then Visual Studio 2012.

Now I get this incredibly frustrating error:

Error 81 error MSB8020: The builds tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found. To build using the v90 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install Visual Studio 2008 to build using the Visual Studio 2008 build tools. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.Cpp.Platform.targets 43 5 WinApiWrapper (Visual Studio 2008)

Why WOULDN'T Visual Studio 2012 be able to find Visual Studio 2008. Is there any way I can help it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It turns out that you ALSO have to install Visual Studio 2010.

Once I installed Visual Studio 2010, Visual Studio 2012 was able to detect the Visual Studio 2008 build tools.

It seems absolutely crazy, but there you go.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...