I have both VS2010 and VS2012 installed. The problem I had initially was that VS2012 projects would not build complaining of a missing Kernel32.lib file. Subsequent searching through the forums revealed the issue was that the Microsoft.Cpp.Win32.user property sheet file was referencing in Library Directories "$(WindowsSdkDir)lib" which will not work for VS2012. It should be changed to "$(WindowsSdk_LibraryPath_x86)lib" instead.
I changed it and that does make VS2012 build okay but it breaks VS2010. It appears both VS2010 and VS2012 use the same Microsoft.Cpp.Win32.user file. Is there some way to have VS2012 use a different Microsoft.Cpp.Win32.user from VS2010 so that both will build projects successfully? The file is located in C:\Users\<me>\AppData\Local\Microsoft\MSBuild\v4.0.
If the Microsoft.Cpp.Win32.user property sheet is meant to be shared by all VS versions, then is there some way to have all new VS2012 projects automatically inherit a custom property sheet I create? For example, I made a custom property sheet called"Common" that is identical to Microsoft.Cpp.Win32.user.props except that "$(WindowsSdkDir)lib" was changed to "$(WindowsSdk_LibraryPath_x86)lib" in the Library Directories row and I added that to my VS2012 project. It built successfully (while VS2010 projects are unaffected).
So my VS2012 project now shows this in property manager:
Thanks in advance for solutions.