I have installed VS2012 express.It uses VC11 compiler.I need to add also VC10 compiler to be able working with some older libs.I have installed Windows 7.1 SDK which comes with VC10 compiler.Now I can select VC10 from PlatformToolset.But when compiling I am getting this error:
Warning 1 warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets 297 5 (Visual Studio 2010)
Now , I am sure the problem is that I installed the VS not on C but on E.Though Windows SDK I have installed on E too.Somehow I see the config is looking for the “WindowsSDKDir ” on C.Where can I change it ?
Well , finally I fixed it by removing Windows SDK and installing Visual Studio Express 2010.Now VS2012 compiles VC10 fine.