ImQ*_*009 15 c++ visual-studio
所以,我一直有这个问题.通常,当我尝试打开任何项目时,我会收到以下错误:
---------------------------
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?
Run Code Online (Sandbox Code Playgroud)
打开活动日志会显示以下错误:
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)}
Run Code Online (Sandbox Code Playgroud)
为了"解决"这个问题,我只需要去AppData/Local/Microsoft并删除VisualStudio和VSCommon文件夹.这修复了一段时间,让我继续我的项目工作.直到问题随机决定再次回来.
再次,澄清情况.这不是迁移问题或新安装的软件包的问题.我已经有一段时间了这个设置,这些项目是使用这个Visual Studio实例创建的.
Tar*_*rek 18
我时不时地得到同样的错误而不仅仅是C++项目.解决方案各不相同,但大部分时间都是通过删除ComponentModelCache下的文件来完成的,正如WhozCraig建议的评论:
rmdir /q /s %LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ComponentModelCache
Run Code Online (Sandbox Code Playgroud)
更新:
现在存在一个扩展,清除了由Mads Kristensen编写的VS 2015,2017的ComponentCache.
| 归档时间: |
|
| 查看次数: |
7036 次 |
| 最近记录: |