[英]Visual Studio 2015 with Update 2 - 'The Scc Display Information package did not load correctly'
Loading a project in Visual Studio 2015 with Update 2 (either automatically when VS start or manual load), I receive an error saying: 'The Scc Display Information package did not load correctly'. 在Visual Studio 2015中使用Update 2加载项目(VS启动时自动加载或手动加载),我收到一条错误消息:“ Scc显示信息包未正确加载”。
The ActivityLog has: 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>
I installed VS2015 with Update 2 over VS2015 with Update 1. I got the error (package ... did no load correctly). 我安装了带有更新2的VS2015而不是带有更新1的VS2015。我得到了错误(程序包...未正确加载)。
I uninstalled VS2015 completely. 我完全卸载了VS2015。 I reinstalled VS2015 with Update 2 completely. 我完全用Update 2重新安装了VS2015。 I still have the same problem about 'The Scc Display Information' package did not load correctly'. 关于“ Scc显示信息”包未正确加载,我仍然有同样的问题。
Update The problem seems similar to the same problem I had with VS2015 Update 1 . 更新该问题似乎类似于我对VS2015 Update 1遇到的相同问题 。 But I think it is not related to NuGet because I have no package with "Scc" in it. 但是我认为它与NuGet无关,因为我没有包含“ Scc”的软件包。 I always associated "Scc" with Visual Source Safe (could it be related ?). 我总是将“ Scc”与Visual Source Safe关联(可以关联吗?)。 I suspect the problem come from the registry but I can't figure out where. 我怀疑问题来自注册表,但我不知道在哪里。
I tried both solutions from this Stack Overflow link without success: 我从此Stack Overflow链接尝试了两种解决方案, 均未成功:
Any idea how to fix this? 任何想法如何解决这个问题?
This is caused if you have certain MSSCCI-based SCC providers installed. 如果您安装了某些基于MSSCCI的SCC提供程序,则会导致此问题。 You can check your registry's HKLM key: SOFTWARE\\WOW6432Node\\SourceCodeControlProvider
您可以检查注册表的HKLM密钥: SOFTWARE\\WOW6432Node\\SourceCodeControlProvider
If this key is present, that's likely causing the problem. 如果存在此密钥,则很可能会引起问题。
Install the fix from KB3151378 . 从KB3151378安装此修复程序。
New installations of VS 2015 Update 2 after 4/11/2016 automatically include this fix and no manual installation of a fix is necessary. 2016年4月11日之后的VS 2015 Update 2的新安装将自动包含此修复程序,无需手动安装此修复程序。
If you don't use any of the SCC providers mentioned there, try renaming the key to SourceCodeControlProvider_
(added underscore). 如果您不使用此处提到的任何SCC提供程序,请尝试将密钥重命名为SourceCodeControlProvider_
(添加下划线)。 The package should then load cleanly. 然后包装应干净地装入。
We're working on shipping a fix for VS2015 Update 2 to resolve the issue even while you have MSSCCI-based SCC providers installed. 即使您已安装基于MSSCCI的SCC提供程序,我们也正在努力为VS2015 Update 2修复此问题,以解决该问题。
(Microsoft Employee) (微软员工)
I have just fixed this problem with VS2015 on Windows7Pro and I DIDN'T have the SOFTWARE\\WOW6432Node\\SourceCodeControlProvider
registry key. 我刚刚在Windows7Pro上修复了VS2015的问题,并且我没有SOFTWARE\\WOW6432Node\\SourceCodeControlProvider
注册表项。 I took Igor's advice and ONLY cleared the %HOMEPATH%\\AppData\\Local\\Microsoft\\VisualStudio\\14.0\\ComponentModelCache
folder. 我接受了Igor的建议,仅清除了%HOMEPATH%\\AppData\\Local\\Microsoft\\VisualStudio\\14.0\\ComponentModelCache
文件夹。 When VS2015 restarted, the error was gone and VS 'rebuilt the cache'. VS2015重新启动时,错误消失了,VS“重新构建了缓存”。
Darel 达雷尔
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.