Switching VS2010 to use Windows 7.1 SDK

后端 未结 3 1940
面向向阳花
面向向阳花 2020-12-08 11:12

I\'ve used VS2008 on my development machine for some years now, with windows SDK v7.1.

I\'ve installed VS2010, and it\'s using the Windows SDK v7.0a, but I need it t

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 11:36

    For all those using Visual Studio Command Prompt I mention you have to modify VCVarsQueryRegistry.bat file (it's being called (indirectly) by %VSINSTALLDIR%\VC\vcvarsall.bat) which is placed in %VSINSTALLDIR%\Common7\Tools folder (typicaly C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools) by modifying line 26 from

    @for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" /v "InstallationFolder"') DO (
    

    to

    @for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1" /v "InstallationFolder"') DO (
    

    I wish someone from Microsoft explained why WindowsSdkVer.exe doesn't work for VS 2010...

提交回复
热议问题