The official source of product insight from the Visual Studio Engineering Team
If you find out that after trying out one of the beta versions of the new Visual Studio 2010 and uninstalling it together with the .NET Framework 4 or uninstalling only .NET Framework 4, every time you try to load a project on Visual Studio 2008 you face the following error:
“Unable to read the project file ‘Project.proj’.
MSBuildToolsPath is not specified for the ToolsVersion “4.0” defined at “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0”, or the value specified evaluates to the empty string.”
This might be caused by the Windows SDK v7.0A still present on the machine or at least some of the registry keys it uses. To fix this issue you need to do the following:
1) Make sure Visual Studio 2010 is completely uninstalled (go to “Control Panel -> Programs -> Programs and features” and make sure it is not listed)
2) Make sure the following registry keys do not exist in the machine:
If you are working on a 64bit OS you will need to delete them from the 32 bit part of the registry. To accomplish that click “Start Menu -> Run…” and type the following command:
After doing so, Visual Studio 2008 should be fully functional again.
I could not unintall VS 2010. It keeps trying to install when I try to uninstall it. However, removing the keys got my VS 2008 working again.
This worked for me....I was really under pressure when my system started giving me the depicted error box.........
Thank you for such a useful post
Great good blog.. thanks for the help. Resolved my issue
Excellent information. Fixed my problem.
It worked, thank you!!
Good post.It saved my day. Thank you
Install VS2008SP1 and ready
Thank you so much!
Great! It fixed my problem
GREAT! Thank you so much!
Thanx a lot.....got it....
I too was getting the same error... it worked perfectly... Thnx
Thanks so much!! Worked for me!!!
Thank you! Great!