Reputation:
My working computer had Visual Studio 2010 installed previously. It was working fine.
To gain full support for C++11, the 2012 was installed to this computer recently (VS2010 was not removed, since some old project need it).
My problem is: If I launch VS2012, the Visual Studio user values (e.G. $(VSInstallDir), $(VCInstallDir), $(ExecutablePath) etc.) are the VS2010's values, not the values suitable for VS2012.
What is the reason for it? And how can I solve this problem? The VS2012 must use its' own user values.
Upvotes: 0
Views: 63
Reputation: 2945
Since multiple installations are there, you can select the Platform Toolset from
Project Property Pages\ Configuration Properties\General\Platform Toolset
If it still doesn't work, do the following as last resort:
Edit the following file to change the macros:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Common.props
For me it is V120. Whatever version it is for you, change it accordingly.
Upvotes: 0