As described in this link :
- Make sure that Visual Studio 2010 is completely uninstalled (go to "Control Panel â Programs â Programs and Features" and make sure that it is not listed)
- Verify that the following registry keys do not exist on the machine: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ 4.0 HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ ToolsVersion \ 4.0
Note: If you are working with a 64-bit OS, you will need to remove them from the 32-bit part of the registry. To do this, click "Start Menu ->" Run ... "and enter the following command:
% WINDIR% \ SysWOW64 \ regedit.exe
However, in my case, I replaced "4.0" with "14.0" and it worked.
source share