“ Visual C ++项目系统软件包”软件包未正确加载。
该问题可能是由于配置更改或安装其他扩展程序引起的。您可以通过检查文件来获取更多信息 'C:\ Users \ Armyw0w \ AppData \ Roaming \ Microsoft \ VisualStudio \ 15.0_7c22efff \ ActivityLog.xml'。
重新启动Visual Studio可以帮助解决此问题。
继续显示此错误消息吗?
该文件日志:https://pastebin.com/sA9yDiKr
<description>LegacySitePackage failed for package [Visual C++ Project System Package]Source: 'Microsoft.VisualStudio.Project.VisualC.VCProjectEngine' Description: No platforms have been found on this installation.
System.Runtime.InteropServices.COMException (0x8005050A): No platforms have been found on this installation.
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<ReadInstalledPlatformsAsync>d__264.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<>c__DisplayClass55_0.<<Initialize>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.<>c__DisplayClass7_0.<<Invoke>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Func`1 method)
 at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr instResources, Object sp, Object browser, IVCBuildPackageInternal bldPkg)</description>
有人知道如何解决吗?
答案 0 :(得分:-1)
您的Visual Studio可能缺少安装软件包所需的附加扩展程序的“工作负载”。
我遇到了同样的问题,然后卸载并重新安装了Visual Studio,并在重新安装之前删除了Visual Studio的所有残余。然后当问题再次出现时,我在网上沉迷于类似的问题 https://social.msdn.microsoft.com/Forums/vstudio/en-US/d89adaf1-0548-4c8f-b1b9-aee0a1140c91/visual-studio-2017-package-load-problem 。其他在Visual Studio早期版本上遇到此问题的人指出,项目类型guid告诉VS它需要什么来加载程序包。我的guid与在线的任何项目类型guid不匹配。然后,我了解到Visual Studio 2017将自动为每个项目生成唯一的向导,并且不再像早期版本那样设置已发布的ID。
然后,我在此文件中查看了更多有关Project Type的信息,并意识到它正在构建Win32应用程序。我在Visual Studio Installer中扫描了Windows应用程序的工作负载,然后下载了.NET for Windows应用程序的工作负载。重新启动计算机后,我仍然遇到问题,发现我必须删除项目的.vs文件夹,Visual Studio才能“重置”自身。我删除了.vs文件夹,终于可以加载我的包了。