visual studio 2013 打开文件时崩溃

visual studio 2013 crashes when opening a file

我可以在我的 C# 项目中毫无问题地工作。今天突然所有在 VS 中打开文件的尝试都会导致错误(完全崩溃,VS 试图找到解决方案,重新启动 VS,问题仍然存在)。加载解决方案似乎没问题...

我做了很多研究,但还没有找到解决方案。我试过的是:

这是 ActivityLog 中最有说服力的条目:

  <entry>
    <record>593</record>
    <time>2015/11/03 20:34:29.514</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
    <guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
    <hr>80070057 - E_INVALIDARG</hr>
    <errorinfo>No EditorOptionDefinition export found for the given option name: Graphics/Simple/Enable
Parameter name: optionId</errorinfo>
  </entry>

有人建议删除或重命名名为ComponentModelCache的文件夹,但我找不到这样的文件夹(如果我没记错的话应该和ActivityLog在同一个文件夹)。

所以它与 EditorPackage 有关(似乎很明显,因为我在尝试编辑文件时遇到错误...)

请教我修复VS的方法!谢谢!

尽管我认为根据您将链接添加为答案的请求,链接不算作答案,因为它可以帮助您解决问题,但您可以根据此处的先前答案和建议找到许多不同的解决方案

where to locate the ComponentModelCache folder