在Visual Studio 2013中,我在尝试打开C#文件时遇到以下错误:
No EditorOptionDefinition export found for the given option name:
Tabs/ConvertTabsToSpaces
Parameter name: optionID
Run Code Online (Sandbox Code Playgroud)
我整个上午都没有遇到任何问题,直到我关闭并重新打开一个C#解决方案,我正在努力解决这个错误.我检查过,当我在这台计算机上打开任何C#项目时,会发生此错误.我也尝试从我的其他计算机打开同一个项目,它工作正常,所以这不是一个项目错误.
我没有更改任何VS设置,而我只是试图打开包管理器.
我感到茫然,谷歌博士到目前为止没有多大帮助.
每次启动Visual Studio时都会收到错误消息.由于我在项目中也看到了一些无法解释的行为,我想解决这个问题.
错误信息
遇到了一个例外.这可能是由扩展引起的.
您可以通过检查文件'C:\ Users\Jonathan\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml'来获取更多信息.
当我查看日志文件时,我发现两个例外:
错误1
Exception Type : System.Windows.Markup.XamlParseException
Exception Message : Provide value on 'System.Windows.StaticResourceExtension' threw an exception.
Exception Stack Trace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SquaredInfinity.VSCommands.UI.Views.DefaultAlertView.InitializeComponent()
at SquaredInfinity.VSCommands.Foundation.Services.VSCUIService.GetDefaultAlertViewModel(String alertMessage, String alertDialogTitle)
at SquaredInfinity.Foundation.Presentation.Services.UIService.GetDefaultAlertViewModel(String alertMessage)
at SquaredInfinity.Foundation.Presentation.Services.UIService.ShowAlert(String message)
at SquaredInfinity.VSCommands.VSCommandsPackage.Initialize()
Exception Data …Run Code Online (Sandbox Code Playgroud) 我刚刚安装了Visual Studio 2013 Update 2(我的操作系统是Windows 8).
安装后,每当我打开Visual Studio时,我都会收到以下错误:

这可以,直到这里,但如果我打开一个项目,Visual Studio会崩溃

ActivityLog.xml中的最后记录:
<entry>
<record>964</record>
<time>2014/05/20 19:38:45.997</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>965</record>
<time>2014/05/20 19:38:45.997</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>966</record>
<time>2014/05/20 19:38:45.998</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
<hr>80070002</hr>
<errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Languages\Microsoft.VisualStudio.JSON.Package.dll' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
<record>967</record>
<time>2014/05/20 19:38:46.013</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End …Run Code Online (Sandbox Code Playgroud)