Visual Studio 2012 未能检测到 Visual Studio 2008 构建工具 [英] Visual Studio 2012 failing to detect Visual Studio 2008 build tools
问题描述
我正在尝试使用 Visual Studio 2012 构建面向 .NET 3.5 的 C++ CLI 应用程序.
I am trying to use Visual Studio 2012 to build a C++ CLI application targeting .NET 3.5.
通过安装 Visual Studio 2008 并指定 v90 平台工具集,我已经在一台机器上完成了这项工作.
I've already gotten this working on one machine, by installing Visual Studio 2008, and specifying the v90 platform toolset.
现在我正在一台新机器上尝试这个,我已经安装了 Visual Studio 2008,然后是 Visual Studio 2012.
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:
错误 81 错误 MSB8020:Visual Studio 2008 的构建工具(平台工具集 = 'v90')无法找到.使用 v90 构建构建工具,单击项目菜单或右键单击解决方案,然后选择更新 VC++ 项目...".安装视觉Studio 2008 使用 Visual Studio 2008 构建工具.C:程序文件(x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.Cpp.Platform.targets 43 5 WinApiWrapper(Visual Studio 2008)
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)
为什么 Visual Studio 2012 无法找到 Visual Studio 2008.有什么办法可以帮助它?
Why WOULDN'T Visual Studio 2012 be able to find Visual Studio 2008. Is there any way I can help it?
推荐答案
事实证明,您还必须安装 Visual Studio 2010.
It turns out that you ALSO have to install Visual Studio 2010.
一旦我安装了 Visual Studio 2010,Visual Studio 2012 就能够检测到 Visual Studio 2008 构建工具.
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.
这篇关于Visual Studio 2012 未能检测到 Visual Studio 2008 构建工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!