vs2015卸载后无法打开vs2008项目

Can't open vs2008 project after vs2015 uninstall

我安装了 Visual Studio 2008 和 2012。最近也装了Visual Studio2015,后来卸载了。现在我无法打开我在 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", or the value specified evaluates to the empty string.

如本文所述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.0 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersion.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

但是在我的例子中,我用“14.0”替换了“4.0”并且它起作用了。

只需从以下地址下载并安装适用于 VS 2015 的 MSBuild 工具 link https://www.microsoft.com/en-us/download/confirmation.aspx?id=48159 这将解决问题。