安装Visual Studio 2015 RTM后无法加载程序包

编程入门 行业动态 更新时间:2024-10-24 19:28:16
本文介绍了安装Visual Studio 2015 RTM后无法加载程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我安装了Visual Studio 2015 RC,并在其上安装了Visual Studio 2015 RTM.我在互联网上找不到任何表示您无法做到这一点的信息.我不知道这是否与问题有关.

I had Visual Studio 2015 RC installed and installed Visual Studio 2015 RTM over it. I couldn't find anything on the Internet that said you couldn't do this. I don't know if this is relevant to the problem.

不幸的是,当我重新启动VisualStudio®2015 RTM第一次启动它时,它弹出了带有以下内容的消息框:

Unfortunately, when I started up VisualStudio2015 RTM for the first time after restarting it popped up message boxes with:

'Microsoft.VisualStudio.Editor.Implementation.EditorPackage'程序包未正确加载"

"The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly"

也:

  • XamarinShellPackage
  • TestWindowPackage
  • NuGetPackage
  • ErrorListPackage

如何解决此错误?

据说要在 ActivityLog.xml 中查找.我找不到Microsoft.VisualStudio.Editor.Implementation.EditorPackage.

It said to look in the ActivityLog.xml. I couldn't find Microsoft.VisualStudio.Editor.Implementation.EditorPackage.

但是对于 XamarinShellPackage ,它说:

<entry> <record>339</record> <time>2015/07/21 13:01:54.011</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [XamarinShellPackage]</description> <guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid> <hr>80070057 - E_INVALIDARG</hr> <errorinfo>'providers' cannot contain a null (Nothing in Visual Basic) element. Parameter name: providers</errorinfo> </entry> <entry> <record>340</record> <time>2015/07/21 13:01:54.013</time> <type>Error</type> <source>VisualStudio</source> <description>End package load [XamarinShellPackage]</description> <guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid> <hr>80070057 - E_INVALIDARG</hr> <errorinfo>'providers' cannot contain a null (Nothing in Visual Basic) element. Parameter name: providers</errorinfo> </entry>

对于 TestWindowPackage :

<entry> <record>394</record> <time>2015/07/21 13:02:02.751</time> <type>Error</type> <source>TestWindowPackage</source> <description>TestWindowPackage.Initialize failed with exception: &#x000D;&#x000A;&#x000D;&#x000A;System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize() &#x000D;&#x000A;&#x000D;&#x000A;PackageContainer loaded: False &#x000D;&#x000A;</description> </entry> <entry> <record>395</record> <time>2015/07/21 13:02:02.752</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [TestWindowPackage]</description> <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid> <hr>80004003 - E_POINTER</hr> <errorinfo>Object reference not set to an instance of an object.</errorinfo> </entry>

对于 NuGetPackage :

<entry> <record>405</record> <time>2015/07/21 13:02:04.096</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [NuGetPackage]</description> <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid> <hr>80004003 - E_POINTER</hr> <errorinfo>Object reference not set to an instance of an object.</errorinfo> </entry> <entry> <record>406</record> <time>2015/07/21 13:02:04.096</time> <type>Error</type> <source>VisualStudio</source> <description>End package load [NuGetPackage]</description> <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid> <hr>80004003 - E_POINTER</hr> <errorinfo>Object reference not set to an instance of an object.</errorinfo> </entry>

对于 ErrorListPackage ,它说:

<entry> <record>409</record> <time>2015/07/21 13:02:04.624</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [ErrorListPackage]</description> <guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid> </entry> <entry> <record>410</record> <time>2015/07/21 13:02:04.629</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [ErrorListPackage]</description> <guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid> <hr>80004003 - E_POINTER</hr> <errorinfo>Object reference not set to an instance of an object.</errorinfo> </entry>

到目前为止我尝试过的一切

  • 在工具->扩展和更新中,我尝试卸载并重新安装扩展.但是,当我单击菜单项扩展和更新"时,出现未设置对象引用"异常吗?因此,我无法尝试此选项.
    • 我已经卸载了Visual Studio 2015并重新安装了它.没有效果.
    • 我已经完成了 connect.microsoft/VisualStudio/feedback/details/1123745/setsite-failed-for-package-microsoft-visualstudio-editor-implementation-editorpackage 在13- 2-2015在16:49.没有效果.实际上,再次启动Visual Studio 2015后,整个完全相同的文件夹结构和文件(快速浏览)就被复制回去.
    • What I have tried so far

      • At Tools --> Extensions and Updates I have tried to de-install and re-install the extensions. But when I click on the menu item "Extensions and Updates" I get the "Object reference not set" exception?? So I can't try this option.
        • I have deinstalled Visual Studio 2015 and reinstalled it. No effect.
        • I have done what is suggested in connect.microsoft/VisualStudio/feedback/details/1123745/setsite-failed-for-package-microsoft-visualstudio-editor-implementation-editorpackage at 13-2-2015 at 16:49. No effect. In fact, the entire exact same folder structure and files (at a quick glance) gets copied back after starting up VisualStudio2015 again.
        • 那么...那里有什么建议吗?

          So... Any suggestions out there?

          我刚尝试加载项目,并且...出了点问题.它无法加载诸如"CSharpPackage,IntegrationPackage,MigrationPackage,FileIndicatorPackage等..."之类的软件包,并且解决方案资源管理器完全空白!发生了什么事?

          I just tried to load a project and... Something is very wrong. It can't load a bunch of packages like: "CSharpPackage, IntegrationPackage, MigrationPackage, FileIndicatorPackage, etc..." and the Solution Explorer is completely blank! What is going on?

          这是我的程序和功能的外观:

          This is how my Programs and Features look like:

          我已尽我所能卸载并删除了

          I have uninstalled and removed as much as I dared.

          • 删除了AppData \ Roaming \ Microsoft \ VisualStudio \ 14.0中的所有内容
          • 删除了AppData \ Local \ VisualStudio \ 14.0中的所有内容
          • 通过程序和功能卸载Visual Studio 2015(屏幕截图上方)
          • 完全删除了Program Files文件夹中的Visual Studio Secondary Installer文件夹
          • 从程序文件中删除了与Visual Studio 14.0有关的所有内容

          我不想弄乱我的Visual Studio 2013安装. Visual Studio 2015仍然无法加载以上软件包!

          I don't want to mess up my Visual Studio 2013 installation. VisualStudio2015 still can't load the packages above!

          因此,如果任何人都可以从上述屏幕截图中获得有关哪些程序可以完全卸载的更多信息,

          So if anyone has more information as to which programs exactly can be uninstalled from the above screenshot, I would be very happy.

          要采取的步骤(从更新3更新)

          Steps to be taken (updated from update 3)

          • 删除了AppData \ Roaming \ Microsoft \ VisualStudio \ 14.0中的所有内容
          • 删除了AppData \ Local \ VisualStudio \ 14.0中的所有内容
          • 从ProgramData删除与Visual Studio 14.0有关的所有内容
          • 通过程序和功能卸载Visual Studio 2015(屏幕截图上方)
          • 这篇文章说的一切吗: support.microsoft/nl-nl/kb/3016536
          • 完全删除了Program Files文件夹中的Visual Studio Secondary Installer文件夹
          • 基本上从Program Files中删除了与Visual Studio 14.0有关的所有内容.卸载程序和功能中剩下的一切.
          • 卸载Microsoft Visual C ++可再发行组件(x86)-也安装14.0.xxx
          • 也卸载了我的Xamarin东西
          • 希望我没有忘记任何东西,但最重要的是要完全摆脱与Visual Studio 2015有关的任何东西.
          • 重新安装Visual Studio 2015 RTM,它现在应该可以工作了.我必须再次安装一些第三方的东西,但至少可以用!
          • Removed everything in AppData\Roaming\Microsoft\VisualStudio\14.0
          • Removed everything in AppData\Local\VisualStudio\14.0
          • Remove everything concerning Visual Studio 14.0 from ProgramData
          • Uninstalled Visual Studio 2015 via Programs and Features (above screenshot)
          • Did everything this article says: support.microsoft/nl-nl/kb/3016536
          • Removed the Visual Studio Secondary Installer folder in the Program Files folder altogether
          • Removed anything that has to do with Visual Studio 14.0 from Program Files basically. Anything left over from uninstalling in Programs And Features.
          • Uninstall Microsoft Visual C++ redistributable (x86) - 14.0.xxx also
          • Uninstalled my Xamarin stuff also
          • Hope I didn't forget anything, but bottom line is to totally get rid of anything VisualStudio2015 related.
          • Reinstall VisualStudio2015 RTM and it should work now. I have to install some third-party stuff again, but at least it works!
          推荐答案

          我的计算机上都安装了Visual Studio 2012、2013和2015.安装Visual Studio 2013 Update 5之后,我开始在VS 2013中收到程序包未正确加载"错误.

          I have VisualStudio2012, 2013 and 2015 all installed on my machine. After installing VisualStudio2013 Update 5, I started getting the "package did not load correctly" error in VS 2013.

          要使其正常工作,我要做的就是遵循这一步骤:

          All I did to get it working was to follow this step:

        • 关闭Visual Studio的所有实例
        • 删除此文件夹中的所有内容 C:\Users\%username%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
        • 重新启动Visual Studio
        • Close all instances of Visual Studio
        • Delete everything in this folder C:\Users\%username%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
        • Restart Visual Studio
        • 尽管我还没有在Visual Studio 2015中尝试过此方法,但我相信这也应该可以解决该问题.为此,对于Visual Studio 2015,应将 12.0 更改为 14.0 .

          Though I have not tried this for VisualStudio2015, I believe this should solve the problem too. To do this for VisualStudio2015, 12.0 should be changed to 14.0.

          更新

          与其删除文件夹中的所有内容(如上面的步骤2 所建议的),不如将其重命名并允许Visual Studio创建一个新文件夹,要安全得多.有时,您可能必须从旧文件夹中复制一些内容.

          Instead of deleting everything in the folder (as suggested by step 2 above), it is much more safer to rename the folder and allow Visual Studio create a new one. Sometimes, you might have to copy somethings over from the old folder.

更多推荐

安装Visual Studio 2015 RTM后无法加载程序包

本文发布于:2023-11-16 11:12:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603760.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   程序包   Studio   Visual   RTM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!