合并.cshtml文件时Visual Studio 2015 Update 2崩溃

jos*_*ode 2 c# razor visual-studio-2015

当我尝试在Visual Studio 2015 Update 2中合并cshtml文件时,我一直收到这个通用错误,然后VS会崩溃:我检查了日志,但它们根本没用.如下所示,错误是遇到异常.这可能是由扩展引起的.

在此输入图像描述

这可能是抛出错误的地方.不确定

    <entry>
    <record>3863</record>
    <time>2016/07/20 14:11:46.766</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.ArgumentNullException: Value cannot be null.&#x000D;&#x000A;Parameter name: key&#x000D;&#x000A;   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)&#x000D;&#x000A;   at Microsoft.VisualStudio.Html.Package.Extensions.ExtensionsManager.OnTextViewCreated(ITextView textView, ITextBuffer textBuffer)&#x000D;&#x000A;   at Microsoft.Web.Editor.Controller.TextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer)&#x000D;&#x000A;   at Microsoft.VisualStudio.Html.Package.Commands.Html.VsHtmlTextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer)&#x000D;&#x000A;   at Microsoft.Web.Editor.Controller.TextViewConnectionListener.&lt;&gt;c__DisplayClass24_0.&lt;OnTextViewConnected&gt;b__0(Object sender, EventArgs eventArgs)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)</description>
  </entry>
  <entry>
Run Code Online (Sandbox Code Playgroud)

这使得我必须手动合并我的cshtml文件.我尝试修复VS 2015并试图禁用一堆扩展,但它仍然存在.

jos*_*ode 10

我想发布一个修复程序,因为我遇到了问题.我在GitHub上找到了这个链接,它建议我转到工具,选项,文本编辑器,HTML,高级,然后将识别有用的扩展设置为False.至少在ToddGrun的一篇文章中提到过这一点,也许还有其他一些帖子.

在此输入图像描述

我继续尝试再次合并之前重新启动Visual Studio.不确定你是否必须这样做.

之后它起作用了.