Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open vs2008 project after vs2015 uninstall

I have Visual Studio 2008 and 2012 installed. Recently, I also installed Visual Studio 2015 but later uninstalled it. Now I can't open my compact framework project in Visual Studio 2008.

Unable to read the file project 'Projectname.vbproj'. MSbuildToolsPath is not specified for the ToolsVersion "14.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14", or the value specified evaluates to the empty string.

like image 393
Herman Zun Avatar asked Oct 13 '15 12:10

Herman Zun


2 Answers

As described in this link:

  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: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\4.0 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersion\4.0

Note: 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:

%WinDir%\SysWOW64\regedit.exe

However in my case I replaced "4.0" for "14.0" and it worked.

like image 93
Herman Zun Avatar answered Sep 25 '22 19:09

Herman Zun


Just download and install MSBuild Tools for VS 2015 from the following link https://www.microsoft.com/en-us/download/confirmation.aspx?id=48159 this will fix the problem.

like image 30
mijaved Avatar answered Sep 25 '22 19:09

mijaved