简体   繁体   English

Visual Studio 2013或2015 EditorPackage无法正常加载

[英]Visual Studio 2013 or 2015 EditorPackage did not load correctly constantly

When starting Visual Studio 2013 Pro (Update 4 installed) I very often get this error message (several times a day now) for the past about two weeks: 启动Visual Studio 2013 Pro(安装了Update 4)时,我经常会在过去大约两周内收到此错误消息(现在每天几次):

The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly. “Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包未正确加载。

I know I can correct this problem by closing Visual Studio and deleting: 我知道我可以通过关闭Visual Studio并删除来解决此问题:

%LocalAppData%\Microsoft\VisualStudio\12.0\ComponentModelCache

I have never seen it before that time and as far as I found out in the Internet it was possibly introduced with Update 3. 我在那之前从未见过它,据我在互联网上发现它可能是在Update 3中引入的。

Well, the problem is that it is annoying to restart Visual Studio several times a day, and I was wondering if anyone else is experiencing this and knows how to solve it for good or what the cause is. 好吧,问题是每天多次重启Visual Studio很烦人,我想知道是否有其他人正在经历这个并知道如何解决它的好处或原因是什么。

I noticed that it happens extremely often if I work in more than one instance of Visual Studio in parallel. 我注意到,如果我并行处理多个Visual Studio实例,则会经常发生这种情况。 This one is a killer. 这个是杀手。 But still I suspect a third-party component to be involved or it is the size of one of the solutions (about 70 projects). 但是我仍然怀疑要参与的第三方组件,或者它是其中一个解决方案(大约70个项目)的大小。 I tried to deactivate some extensions I newly installed and need for the big project, but to no avail. 我试图停用我新安装的一些扩展并且需要大项目,但无济于事。

Just as information: I am working with C# . 就像信息一样:我正在使用C# When working in parallel with projects open in several instances of Visual Studio I never had problems before. 与在Visual Studio的多个实例中打开的项目并行工作时,我以前从未遇到过任何问题。

Does anyone have the same problem to this extend or possibly have a better solution than deleting the folder and restarting? 有没有人有这个问题相同的问题,或者可能有一个比删除文件夹和重新启动更好的解决方案?

This has become a popular question so I thought I add an explicit answer how to (at least) temporarily fix the problem as already stated in the question: 这已经成为一个流行的问题所以我想我添加一个明确的答案如何(至少)暂时解决问题中已经说明的问题:

I stop Visual Studio and delete the following folder (completely, not just contents) 我停止Visual Studio并删除以下文件夹(完全不仅仅是内容)

%LocalAppData%\Microsoft\VisualStudio\12.0\ComponentModelCache

If you are using VS2015, then the path should be: 如果您使用的是VS2015,那么路径应为:

%LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache

If you are using VS2017, then the path should be: 如果您使用的是VS2017,那么路径应为:

%LocalAppData%\Microsoft\VisualStudio\15.0\ComponentModelCache

I don't keep a backup of the folder. 我不保留文件夹的备份。 It is created automatically again when starting Visual Studio. 启动Visual Studio时会再次自动创建它。

I have never found a solution how to permanently fix the problem in that working environment. 我从未找到过如何在该工作环境中永久修复问题的解决方案。 In my new developing environment (new projects and new workplace) the problem never happens. 在我的新开发环境(新项目和新工作场所)中,问题永远不会发生。

This is what helped me... seemed to happen after Windows Server 2012 SP install... 这有助于我...似乎在Windows Server 2012 SP安装后发生......

https://connect.microsoft.com/VisualStudio/feedback/details/1123745/setsite-failed-for-package-microsoft-visualstudio-editor-implementation-editorpackage https://connect.microsoft.com/VisualStudio/feedback/details/1123745/setsite-failed-for-package-microsoft-visualstudio-editor-implementation-editorpackage

  1. devenv /clearcache
  2. devenv /updateconfiguration

In that case you can start Visual Studio setup again and choose the option showing two options, Repair and Uninstall . 在这种情况下,您可以再次启动Visual Studio安装程序并选择显示两个选项“ 修复卸载”的选项。 Then click Repair and when repair is done, restart the computer. 然后单击“ 修复” ,完成修复后,重新启动计算机。 Then the issue has been resolved. 然后问题就解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 错误:“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包未正确加载 - Visual Studio Error: The "Microsoft.VisualStudio.Editor.Implementation.EditorPackage" package did not load correctly 安装Visual Studio 2015 Update 1给了我很多:“包没有正确加载” - Installing Visual Studio 2015 Update 1 give me lots of : “package did not load correctly” Visual Studio 2015 Update 2-“ Scc显示信息包未正确加载” - Visual Studio 2015 with Update 2 - 'The Scc Display Information package did not load correctly' Visual Studio 2013 和 2015 - Visual Studio 2013 and 2015 IIS未加载Visual Studio 2015中的最新更改 - IIS did not load the latest changes in Visual Studio 2015 X package 在启动 Visual Studio 2019 时未正确加载 - The X package did not load correctly when starting Visual Studio 2019 Visual Studio 2013、2015已停止工作 - Visual Studio 2013, 2015 Has stopped working 代码在视觉工作室2015上编译但在2013年失败 - code compiles on visual studio 2015 but failing on 2013 使用 Assembly.Load(byte[], byte[]) 加载 dll 在 Visual Studio 2013 和 2015 之间的不同行为 - Loading dll using Assembly.Load(byte[], byte[]) different behaviour between Visual Studio 2013 and 2015 Visual Studio 2015 CodedUI测试无法在2017年签入后加载2013年dll - Visual Studio 2015 CodedUI Test can't load 2013 dll after 2017 check in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM