我安装了 Visual Studio 2008 和 2012。最近,我还安装了 Visual Studio 2015,但后来卸载了它。现在我无法在 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.
最佳答案
如本 link 中所述:
- Make sure Visual Studio 2010 is completely uninstalled (go to “Control Panel -> Programs -> Programs and features” and make sure it is not listed)
- 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
但是,在我的情况下,我将“4.0”替换为“14.0”并且它起作用了。
关于visual-studio - vs2015卸载后无法打开vs2008项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33102825/