简体   繁体   English

“Visual Studio Build Manager Package”包未正确加载

[英]The 'Visual Studio Build Manager Package' package did not load correctly

Im using Visual Studio 2017 Community Edition.我使用的是 Visual Studio 2017 社区版。 My laptop suddenly has a problem and I need to do a hard restart.我的笔记本电脑突然出现问题,我需要硬重启。

So after restarting my PC, the problems come out.所以重新启动我的电脑后,问题就出来了。 Every time I open Visual Studio, this message appears:每次打开 Visual Studio 时,都会出现此消息:

在此处输入图片说明

The solution explorer is also blank, no files are shown there.解决方案资源管理器也是空白的,那里没有显示任何文件。

在此处输入图片说明

When I click properties, it shows an error:当我点击属性时,它显示一个错误:

在此处输入图片说明

When I try to create a new project, no template is found:当我尝试创建一个新项目时,找不到模板:

在此处输入图片说明

Here is the latest log:这是最新的日志:

  <entry>
<record>1811</record>
<time>2018/04/25 11:24:45.723</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Visual Studio Build Manager Package]Source: &apos;mscorlib&apos; Description: The process cannot access the file &apos;C:\Users\{user}\AppData\Local\Temp\dfe52bjz.eei&apos; because it is being used by another process.&#x000D;&#x000A;System.IO.IOException: The process cannot access the file &apos;C:\Users\{user}\AppData\Local\Temp\dfe52bjz.eei&apos; because it is being used by another process.&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.File.InternalDelete(String path, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.Delete(String path)&#x000D;&#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.VsExportProviderFactory.&lt;SerializeAssemblyCatalogsAsync&gt;d__48.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.VsExportProviderFactory.VsExportProviderFactoryWorker.&lt;GetCurrentAssemblyCatalogsAsync&gt;d__15.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.VsExportProviderFactory.VsExportProviderFactoryWorker.&lt;&gt;c__DisplayClass13_0.&lt;&lt;GetCurrentAssemblyCatalogsAsync&gt;b__1&gt;d.MoveNext()   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.VsExportProviderFactory.&lt;GetExportProviderFactoryAsync&gt;d__36.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.&lt;GetMEFV3ExportProviderInternalAsync&gt;d__50.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.&lt;GetMEFV3ExportProviderWrapperAsync&gt;d__49.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.AsyncLazy`1.&lt;&gt;c__DisplayClass13_1.&lt;&lt;GetValueAsync&gt;b__0&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetLazyValue[T](AsyncLazy`1 lazy)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetExtensions[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.CommonIDE.BuildManager.BuildManagerAccessor.&lt;CreateAsync&gt;d__44.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.CommonIDE.BuildManager.BuildManagerPackage.&lt;&gt;c.&lt;&lt;-cctor&gt;b__11_0&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.CommonIDE.ServiceInfo.&lt;&gt;c__DisplayClass15_0.&lt;&lt;ProfferService&gt;b__0&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass22_0.&lt;&lt;AddService&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.AsyncLazy`1.&lt;&gt;c__DisplayClass13_1.&lt;&lt;GetValueAsync&gt;b__0&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.CommonIDE.BuildManager.BuildManagerPackage.&lt;InitializeAsync&gt;d__8.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass16_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
<guid>{B718A162-0361-4B0E-920B-D88D70BE609B}</guid>
<hr>80070020</hr>
<errorinfo></errorinfo>

What I have done:我做了什么:

  • Repair Visual Studio from Visual Studio Installer - did not solve the problem从 Visual Studio 安装程序修复 Visual Studio - 没有解决问题
  • Remove folder ComponentModelCache which is located at C:\\Users\\{User}\\AppData\\Local\\Microsoft\\VisualStudio\\15.0_616f23f4 - did not solve the problem删除位于C:\\Users\\{User}\\AppData\\Local\\Microsoft\\VisualStudio\\15.0_616f23f4文件夹ComponentModelCache - 没有解决问题

How can I fix this without reformatting my computer?如何在不重新格式化计算机的情况下解决此问题?

在新路径上安装后,问题消失了。

In my case I managed to solve it, modifying the policies so that it allowed me to execute script in the power shell.在我的情况下,我设法解决了它,修改了策略,以便它允许我在电源外壳中执行脚本。 As he did not have permission, he could not automatically download the packages.由于没有权限,他无法自动下载软件包。

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

相关问题 Visual Studio 2019 - 包未正确加载 - Visual Studio 2019 - Package did not load correctly “Visual Studio Explorers and Designer Package”包未正确加载 - The 'Visual Studio Explorers and Designer Package' package did not load correctly Visual Studio 2015挂起然后:&#39;XamarinIOSPackage&#39;包未正确加载 - Visual Studio 2015 hangs and then: The 'XamarinIOSPackage' package did not load correctly &#39;EurekaPackage&#39;软件包无法正确加载 - Visual Studio 2013 - The 'EurekaPackage' package did not load correctly - Visual Studio 2013 “'Visual Studio XML 编辑器包'未正确加载。” - “The 'Visual Studio XML Editor Package' did not load correctly.” X package 在启动 Visual Studio 2019 时未正确加载 - The X package did not load correctly when starting Visual Studio 2019 Visual Studio 2019 启动“'Visual Studio Common IDE Package' package 未正确加载。” - Visual Studio 2019 startup "The 'Visual Studio Common IDE Package' 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” 如何修复 Microsoft Visual Studio 错误:“包未正确加载”? - How can I fix the Microsoft Visual Studio error: "package did not load correctly"? &#39;ApacheCordovaToolsPackage&#39;包未正确加载 - The 'ApacheCordovaToolsPackage' package did not load correctly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM