Register SDK to Visual Studio. MSVC versions.
-*- mode: outline; coding: utf-8 -*-
* Register SDK to Visual Studio.
To check all available version:
cmd> cd %PROGRAMFILES%\Microsoft SDKs\Windows\vX.X\Setup\
cmd> WindowsSdkVer.exe -version
To check current used version:
cmd> cd %PROGRAMFILES%\Microsoft SDKs\Windows\vX.X\Setup\
cmd> WindowsSdkVer.exe -current
Register SDK:
cmd> cd %PROGRAMFILES%\Microsoft SDKs\Windows\vX.X\Setup\
cmd> WindowsSdkVer.exe -version:v6.1
* MSVC versions.
NAME NUM _MSC_VER cl
Visual Studio 6.0 (1998) 6.0 1200
Visual Studio .NET (2002) 7.0 1300
Visual Studio .NET 2003 7.1 1310
Visual Studio 2005 8.0 1400 14.00
Visual Studio 2008 9.0 1500 15.00
Visual Studio 2010 10.0 1600 16.00
To check version from command line:
cmd# cl /help 2>&1 | head -n 1
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x8
cmd# cl /help 2>&1 | head -n 1 | sed "s=.*Version \([0-9]*\)\.\([0-9]*\)\..*=\1.\2="
16.00
http://predef.sourceforge.net/precomp.html#sec35