Visual studio Sitecore TDS 无法打开 .scproj 项目

Visual studio Sitecore TDS can not open .scproj project

我遇到了 visual studio 的问题。我是 运行 VS 2013 专业版并从 here 版本 5.1.0.24 安装了 TDS(sitecore 的团队开发)但是当我尝试在 visual studio 我得到这个错误

我是 运行 Visual studio 2013 亲,windows 7 亲。我已经安装了一些其他版本的 VS(2012、2013、2015),但在我安装 VS 2013 pro 之前卸载了它们。

有人帮忙吗?

我终于找到了解决方案,所以我分享它以防有一天有人遇到同样的问题。 问题是,当我出于某种原因卸载 VS 2015 社区时,它没有删除注册表中的密钥,在 VS 输出中我得到了这个异常(但它并没有在我尝试创建项目时每次都显示,只是有时)

Exception MSBuildToolsPath is not specified for the ToolsVersion "14.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions.0", or the value specified evaluates to the empty string. (InvalidToolsetDefinitionException):
   at Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException.Throw(Exception innerException, String resourceName, Object[] args)
   at Microsoft.Build.BuildEngine.ToolsetReader.ReadToolset(PropertyDefinition toolsVersion, BuildPropertyGroup globalProperties, BuildPropertyGroup initialProperties, Boolean accumulateProperties)
   at Microsoft.Build.BuildEngine.ToolsetReader.ReadEachToolset(ToolsetCollection toolsets, BuildPropertyGroup globalProperties, BuildPropertyGroup initialProperties, Boolean accumulateProperties)
   at Microsoft.Build.BuildEngine.ToolsetReader.ReadToolsets(ToolsetCollection toolsets, BuildPropertyGroup globalProperties, BuildPropertyGroup initialProperties, Boolean accumulateProperties)
   at Microsoft.Build.BuildEngine.ToolsetReader.ReadAllToolsets(ToolsetCollection toolsets, ToolsetRegistryReader registryReader, ToolsetConfigurationReader configurationReader, BuildPropertyGroup globalProperties, BuildPropertyGroup initialProperties, ToolsetDefinitionLocations locations)
   at Microsoft.Build.BuildEngine.Engine.PopulateToolsetStateMap(ToolsetDefinitionLocations locations)
   at Microsoft.Build.BuildEngine.Engine..ctor(Int32 numberOfCpus, Boolean isChildNode, Int32 parentNodeId, String localNodeProviderParameters, BuildPropertyGroup globalProperties, ToolsetDefinitionLocations locations)
   at Microsoft.Build.BuildEngine.Engine.get_GlobalEngine()
   at Microsoft.VisualStudio.Package.Utilities.InitializeMsBuildEngine(Engine existingEngine, IServiceProvider serviceProvider)
   at HedgehogDevelopment.SitecoreProject.VSIP.SitecoreProjectPackage.Initialize()

所以我所要做的就是按照说明删除注册表中的密钥 here

我按照@Richard Seal 的建议编辑我的问题

打开注册表 (regedit)
导航到 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild(OS 32 位)或 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild(64 位)
在你进一步备份这个注册密钥之前(select MSBuild 密钥然后文件 -> 导出)
展开 MSBuild 下的 ToolsVersions,你应该看到 14.0 出现在 ToolsVersions 下但没有出现在 MSBuild 下,删除这个键
如果你有 VS 运行 你应该重启它