如何在没有 VS2008 的情况下使用 Windows SDK 在 VS2012 中使用 v90 平台工具集进行构建? [英] How to build with v90 platform toolset in VS2012 without VS2008, using Windows SDK?

查看:33
本文介绍了如何在没有 VS2008 的情况下使用 Windows SDK 在 VS2012 中使用 v90 平台工具集进行构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 2012,这是我安装的唯一 Visual Studio 版本.我需要使用 v90 平台工具集(Visual Studio 2008)构建某些 C++ 项目,但我无法安装 Visual Studio 2008.

I use Visual Studio 2012 and this is the only version of Visual Studio I have installed. I need to build certain C++ projects with the v90 platform toolset (of Visual Studio 2008), but I can't install Visual Studio 2008.

我知道可以通过安装 Windows SDK 7.0 来使用 v90 平台工具集.具体是怎么做的?如果我只是使用 7.0 SP1 的网络安装程序,我仍然不认为 v90 是可能的平台工具集之一.

I understand it is possible to use the v90 platform toolset by installing Windows SDK 7.0. How exactly is it done? If I simply use the web installer of 7.0 SP1, I still don't see v90 as one of the possible platform toolsets.

推荐答案

有可能,但显然需要一些操作,不支持构建MFC 应用程序.下面假设安装了VS2012 update 4,但没有安装VS2010和VS2008.

It is possible, but apparently requires some maneuvering and will not support building MFC applications. The following assumes that VS2012 update 4 is installed, but neither VS2010 nor VS2008 are installed.

  1. 下载 SDK 7.0 SP1 (GRMSDK_EN_DVD.iso).挂载 ISO 或提取其内容,然后从 Setup 文件夹下的以下文件夹手动安装 MSI 文件:

  1. Download the x86 DVD of SDK 7.0 SP1 (GRMSDK_EN_DVD.iso). Mount the ISO or extract its contents, and manually install the MSI files from the following folders under the Setup folder:

  • WinSDK (这可能会失败,没关系)
  • WinSDKBuild
  • WinSDKInterop
  • WinSDK 工具
  • WinSDKWin32 工具
  • vc_stdx86
  • vc_stdamd64
  • winsdk_intellidocs
  • WinSDKIntellisenceRefAssys
  • WinSDKNetFxTools

 

下载 SDK 7.1 (GRMSDK_EN_DVD.iso).挂载 ISO 或提取其内容,然后从上面列出的相同文件夹中手动安装 MSI 文件(winsdk_intellidocs 除外,它不存在).

Download the x86 DVD of SDK 7.1 (GRMSDK_EN_DVD.iso). Mount the ISO or extract its contents, and manually install the MSI files from the same folders listed above (except winsdk_intellidocs, which doesn't exist).

转到 C:\Program Files (x86)\Microsoft Visual Studio 9.0.将以下文件从 Common7\IDE 复制到 VC\bin:

Go to C:\Program Files (x86)\Microsoft Visual Studio 9.0. Copy the following files from Common7\IDE to VC\bin:

  • msobj80.dll
  • mspdb80.dll
  • mspdbcore.dll
  • mspdbsrv.exe

现在您应该可以在 Visual Studio 2012 中选择 v90 平台工具集并使用它进行构建.

Now you should be able to choose the v90 platform toolset in Visual Studio 2012 and build with it.

解释(和来源):

  • 个人 MSI 安装基于此 连接报告.
  • 7.0 和 7.1 的要求基于这个问题(VS2010 和 VS2008 都需要在VS2012!).如果您有 VS2010,则不需要 SDK 7.1.
  • DLL/EXE 复制要求基于另一个问题.如果您不复制它们,您将看到 error MSB6006: "CL.exe" exited with code -1073741515.
  • Individual MSI installation is based on the second workaround from this connect report.
  • The requirement for both 7.0 and 7.1 is based on this question (both VS2010 and VS2008 are required to use v90 in VS2012!). SDK 7.1 is not needed if you have VS2010.
  • DLL/EXE copying requirement is based on yet another question. If you do not copy them, you will see error MSB6006: "CL.exe" exited with code -1073741515.

这篇关于如何在没有 VS2008 的情况下使用 Windows SDK 在 VS2012 中使用 v90 平台工具集进行构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆