visual-studio - vs2015卸载后无法打开vs2008项目

标签 visual-studio visual-studio-2008 msbuild visual-studio-2015

我安装了 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 中所述:

  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



但是,在我的情况下,我将“4.0”替换为“14.0”并且它起作用了。

关于visual-studio - vs2015卸载后无法打开vs2008项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33102825/

相关文章:

.net - 为什么 Visual Studio 2012 会引用错误版本的程序集?

javascript - Visual Studio 编辑器中的 JS 文件中的箭头是什么意思?

c# - Visual Studio 跳转到快捷方式

visual-studio - 最低 SDK 版本 Windows 10 (UWP)

visual-studio - 如何停止 Visual Studio 自动升级项目?

c# - 导出函数(VS2008)的默认调用约定是什么?

visual-studio-2010 - MSBuild 目标,BeforeCompile,在加载项目文件时触发

visual-studio-2013 - VS2013 devenv 命令行构建错误/挂起

visual-studio - 如何将属性表恢复为其默认值?

c# - 如何阻止 Visual Studio 自动格式化代码的某些部分?