Switching VS2010 to use Windows 7.1 SDK Switching VS2010 to use Windows 7.1 SDK windows windows

Switching VS2010 to use Windows 7.1 SDK


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...


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.


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