Visual studio 2015 在Visual Studio Professional 2015中使用团队资源管理器上的“合并”按钮时出现异常
在Visual Studio Professional 2015中单击团队资源管理器中的“合并”按钮时出现异常Visual studio 2015 在Visual Studio Professional 2015中使用团队资源管理器上的“合并”按钮时出现异常,visual-studio-2015,team-explorer,Visual Studio 2015,Team Explorer,在Visual Studio Professional 2015中单击团队资源管理器中的“合并”按钮时出现异常 An exception has been encountered. This may be caused by an extension. You can get more information by examining the file C:\Users\XXXX\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xm
An exception has been encountered. This may be caused by an extension.
You can get more information by examining the file C:\Users\XXXX\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
ActivityLog.xml的内容如下:
<record>775</record>
<time>2016/02/23 11:22:08.722</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>
System.ArgumentNullException: Value cannot be null.
Parameter name: key

at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)

at Microsoft.VisualStudio.Html.Package.Extensions.ExtensionsManager.OnTextViewCreated(ITextView textView, ITextBuffer textBuffer)

at Microsoft.Web.Editor.Controller.TextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer)

at Microsoft.VisualStudio.Html.Package.Commands.Html.VsHtmlTextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer)

at Microsoft.Web.Editor.Controller.TextViewConnectionListener.<>c__DisplayClass24_0.<OnTextViewConnected>b__0(Object sender, EventArgs eventArgs)

at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)
</description>
775
2016/02/23 11:22:08.722
错误
编辑器或编辑器扩展
System.ArgumentNullException:值不能为空。
;参数名称:key
;
在System.Collections.Generic.Dictionary`2.FindEntry(TKey)和#x000D
;
在Microsoft.VisualStudio.Html.Package.Extensions.extensionmanager.OnTextViewCreated(ITextView textView,ITextBuffer textBuffer)和x000D
;
在Microsoft.Web.Editor.Controller.TextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView,ITextBuffer textBuffer)和x000D
;
在Microsoft.VisualStudio.Html.Package.Commands.Html.VsHtmlTextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView,ITextBuffer textBuffer)和#x000D
;
在Microsoft.Web.Editor.Controller.TextViewConnectionListener.c__DisplayClass24_0.OnTextViewConnectedb_0(对象发送方、事件参数、事件参数)和x000D
;
位于Microsoft.VisualStudio.Text.Utilities.GuardeOperations.RaiseEvent(对象发送器、事件处理程序和事件处理程序)
我们也遇到了这个问题。特别是,我们注意到VS 2015 Update 1无法手动合并“.JSX”文件中的冲突。使用以下线索作为灵感:我们做了以下工作来解决这个问题。下面的示例适用于JSX文件,但这适用于任何基于文本的文件,只需修改文件类型的说明即可
1) HTML编辑器中的Point.JSX文件:
- 工具
- 选择权
- 文本编辑器
- 文件扩展名
- 将jsx添加到列表中,映射到编辑器“HTML编辑器”
- 工具
- 选择权
- 文本编辑器
- HTML
- 先进的
- “扩展管理”->“识别有用的扩展”->错误
更新2::我见过这种变通方法不起作用的案例。在这种情况下,使用编码将扩展映射到“源代码(文本)编辑器”解决了崩溃问题。感谢您的回答#2刚刚修复了与我遇到的完全相同的崩溃,这只是试图在合并工具中打开一个.cshtml文件。你能在回答中添加提交的VS错误报告的链接吗?我找到了这个,但我不确定它是你的:谢谢。为我解决了同样的问题!是的,这不是我提交的问题,就是另一份提交的问题。很难说,因为从VisualStudio提交的bug没有向我提供任何有关该案例的详细信息。另外请注意,我认为这仍然是更新2中的一个问题。已发布了此问题的修复程序: