Switching VS2010 to use Windows 7.1 SDK

后端 未结 3 1931
面向向阳花
面向向阳花 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:35

    In project properties -> Configuration Properties -> General, set Platform Toolkit to WindowsSDK7.1 (or whatever version you want to use). Remember when you do this to select all configurations (release, debug, etc.) and all platforms (win32, x64, etc.) as appropriate. The documentation says you can set this option in the solution properties, but that does not seem to be the case.

    0 讨论(0)
  • 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...

    0 讨论(0)
  • 2020-12-08 11:36

    Take a look at this page guys. This is going to solve your problems -> Building Applications that Use the Windows SDK

    0 讨论(0)
提交回复
热议问题