我在Visual Studio中遇到问题。我正在运行VS 2013 Professional,并从此处版本5.1.0.24 安装了TDS(针对sitecore的团队开发),但是当我尝试在Visual Studio下创建一个新的TDS项目(此捕获中名为TDSMaster)时,出现此错误
我正在运行Visual Studio 2013专业版,Windows 7专业版。我安装了VS(2012、2013、2015)的其他版本,但在安装VS 2013 pro之前先将其卸载。
有人帮忙吗?
我终于找到了解决方案,所以我分享了它,以防某天有人遇到相同的问题。问题是,当我出于某种原因卸载VS 2015社区时,并未删除注册表中的注册表项,在VS输出中,我遇到了此异常(但有时并没有在我每次尝试创建porject时显示)
Exception MSBuildToolsPath is not specified for the ToolsVersion "14.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.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()
因此,所有我必须做的是删除键在系统登录的解释在这里。
我按照@Richard Seal
打开的注册表编辑器(regedit)的建议编辑我的问题。
导航到HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild(OS 32位)或HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ MSBuild(64位),
然后再继续操作注册密钥(选择MSBuild密钥,然后选择文件->导出)
展开MSBuild下的ToolsVersions,您应该看到14.0出现在ToolsVersions下,而不是MSBuild下,删除此密钥
如果运行VS,则应重新启动它