I recently installed the Visual Studio 11 Developer Preview to try it out, and now my VS 2010 projects won't open. Instead, I get the following error message:
MSBuild does not contain a value for the "VCTargetsPath" property
I found someone that had reported the issue here on Connect, and the response from Microsoft was:
Posted by Microsoft on 12/2/2011 at 5:25 PM
Hi Afshin,
Thanks for the feedback. The issue you ran into is fixed for the next public release Visual Studio.
Jim Griesmer
Visual C++ Team
Fantastic. So how do I restore VCTargetsPath so my projects will work again?
"VCTargetsPath is a toolset property that is defined in HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSBuildToolsVersions4.0. "
I browsed to the VCTargetPath value in the registry and it has the value:
$(MSBuildExtensionsPath32)Microsoft.Cppv4.0
Not sure where to go from here. Any suggestions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…