【问题标题】:Project does not load after installing visual studio 2013 update 2安装 Visual Studio 2013 更新 2 后项目未加载
【发布时间】:2014-06-13 09:16:07
【问题描述】:

安装 Visual Studio Professional 2013 更新 2 后,我收到以下错误:

"未找到给定选项名称的 EditorOptionDefinition 导出: 装饰/HighlichtCurrentLine/启用 参数名称:optionId"

ActivityLog 包含以下错误:

<entry>
    <record>883</record>
    <time>2014/06/13 10:10:10.411</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>Construction of frame content failed.&#x000D;&#x000A;Frame identifier: ST:0:0:{0f887920-c2b6-11d2-9375-0080c747d9a0}&#x000D;&#x000A;Frame caption: Find Results 1&#x000D;&#x000A;Exception details:&#x000D;&#x000A;System.ArgumentException: No EditorOptionDefinition export found for the given option name: Adornments/HighlightCurrentLine/Enable&#x000D;&#x000A;Parameter name: optionId&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.EditorOptions.Implementation.EditorOptionsFactoryService.GetOptionDefinitionOrThrow(String optionId)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.EditorOptions.Implementation.EditorOptions.SetOptionValue(String optionId, Object value)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.EditorOptions.Implementation.EditorOptions.SetOptionValue[T](EditorOptionKey`1 key, T value)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.SetPropertiesToToolWindowDefaults()&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Init_SetSite(Object pUnkSite)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.SetSite(Object pUnkSite)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)&#x000D;&#x000A;   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()</description>
</entry>

在互联网上搜索此问题并没有找到解决方案。

这个问题似乎无关: Visual Studio 2013 Crashed after Update 2?

任何帮助将不胜感激。

【问题讨论】:

  • 您是否尝试在控制面板-> 程序中修复它?

标签: visual-studio-2013


【解决方案1】:

正如link中提到的那样

1.Close Visual Studio
2.Open the folder: %LocalAppData%\Microsoft\VisualStudio\12.0\
3.Rename the ComponentModelCache folder
4.Restart Visual Studio.

【讨论】:

    【解决方案2】:

    我在安装 Visual Studio 2013 Update 3 后也遇到了同样的问题。 我有 Visual Studio 2013 专业版。

    正如此链接所建议的: http://gerardbeckerleg.wordpress.com/2013/10/24/no-editoroptiondefinition-export-found-for-the-given-option-name/#comment-259

    我为 VS 2013 安装了 Web Essentials 2013 并解决了无法打开代码文件的问题。

    这是 Web Essentials 2013 的链接:- http://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361

    【讨论】:

    • 确认这也适用于 Visual Studio 2013 Update 5。
    【解决方案3】:

    重新运行安装并选择修复解决了问题。

    【讨论】:

      【解决方案4】:

      “未找到给定选项名称的 EditorOptionDefinition 导出:Adornments/HighlichtCurrentLine/Enable 参数名称:optionId”

      控制面板->程序->找到Visual Studio->右键->修复

      【讨论】:

      • 我试过了,但右键单击 Visual Studio 并没有给出修复选项,它只给出了“更改”。列出的程序是带有更新 4 的 Microsoft Visual Studio Ultimate 2013。
      【解决方案5】:

      也许这不是你崩溃的原因,但我两次遇到类似的错误,我已经修复了它:

      我在 VS2013 中安装了 VisualSVN。一旦我卸载了它(来自 Windows 的“卸载或更改程序”),一切都很好。 然后我重新安装了它。

      似乎是由于新安装的插件弄乱了 VisualSVN 的设置... (在我的例子中,VS2013 在启动时崩溃了。)

      我希望这对某人有所帮助。

      【讨论】:

      • 我遇到了同样的问题。我今天早上更新了 Windows 7 更新,之后无法重新启动 VS 2013。当看到扩展 AnkhSVN 被禁用并且无法删除或更新它时。从控制卸载解决了这个问题。谢谢
      最近更新 更多