在使用Visual Studio 2015 Update 2自动启动或手动加载项目时,我收到一个错误提示:'The Scc Display Information package did not load correctly'。
ActivityLog中出现了以下信息:
<entry>
<record>541</record>
<time>2016/04/01 13:43:26.048</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Scc Display Information][An item with the same key has already been added.]:{ at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
 at Microsoft.VisualStudio.Services.VsTask.GetResult()}</description>
<guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
<hr>80070057 - E_INVALIDARG</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>542</record>
<time>2016/04/01 13:43:26.050</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Scc Display Information]</description>
<guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
<hr>80070057 - E_INVALIDARG</hr>
<errorinfo></errorinfo>
</entry>
我安装了 VS2015 Update 2 在原本已经安装了 VS2015 Update 1 的基础上,出现了错误提示(package … did no load correctly)。
我彻底卸载了 VS2015。 我重新安装了完整的 VS2015 Update 2,但仍然遇到 'The Scc Display Information' package did not load correctly' 的同样问题。
更新 该问题看起来类似于我之前在 VS2015 Update 1 中遇到的同样的问题。但我认为这与 NuGet 无关,因为我没有使用含有 "Scc" 的包。我一直将 "Scc" 与 Visual Source Safe 关联起来(这是否有关系?)。我怀疑该问题是由注册表引起的,但我无法找到原因所在。
我尝试了来自Stack Overflow 链接中的两种解决方法均未成功:
- 运行命令:C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" /resetskippkgs"
- 删除文件夹 ComponenModelCache (C:\Users\XXXX\AppData\Local\Microsoft\VisualStudio\XX\ComponentModelCache)
有什么想法可以解决这个问题吗?