Visual Studio 2015社区 - “Visual C ++项目系统软件包”错误 [英] Visual Studio 2015 Community - 'Visual C++ Project System Package' error

查看:1281
本文介绍了Visual Studio 2015社区 - “Visual C ++项目系统软件包”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我已经有这个问题了一会儿。经常当我只是试图打开我的任何项目,我得到以下错误:

So, I've been having this problem for a little while now. Frequently when I just try to open any of my projects I get the following error:

---------------------------
Microsoft Visual Studio
---------------------------
The 'Visual C++ Project System Package' package did not load correctly.



The problem may have been caused by a configuration change or by the
installation of another extension. You can get more information by examining the
file 'C:\Users\Q009\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.



Restarting Visual Studio could help resolve this issue.



Continue to show this error message?

打开活动日志会显示以下错误:

Opening the activity log reveals the following error:

SetSite failed for package [Visual C++ Project System Package][Object reference not set to an instance of an object.]:{ at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.get_ProjectService() at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr instResources, Object sp, Object browser, IVCBuildPackageInternal bldPkg)}

为了'解决'这我只是去AppData /本地/ Microsoft和删除VisualStudio和VSCommon文件夹。这修复了一段时间,让我继续工作在我的项目。直到问题随机决定再次回来。

In order to 'solve' this I just go to AppData/Local/Microsoft and remove VisualStudio and VSCommon folders. This fixes it for a while allowing me to continue work on my projects. Until the issue randomly decides to come back again.

再次,澄清情况。这不是迁移问题或新安装的软件包的问题。

Again, to clarify the situation. It's not a migration problem or a problem with newly installed packages. I've had this setup for a while now and those projects were created using this very instance of Visual Studio.

推荐答案

我得到了同样的错误每时每刻,而不只是与C ++项目。解决方案各不相同,但大多数时间通过删除ComponentModelCache下的文件来完成,作为 WhozCraig 建议的注释:

I get the same error every now and then and not just with C++ projects. The solution varies, but most of the times It's done by deleting the files under the ComponentModelCache, as the comment by WhozCraig suggested:

rmdir /q /s %LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ComponentModelCache

这篇关于Visual Studio 2015社区 - “Visual C ++项目系统软件包”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆