![](/img/trans.png)
[英]Why is the "My Work" Team Explorer widget not available in Visual Studio 2015 Professional?
[英]Exception using Merge Button on Team Explorer in Visual Studio Professional 2015
當我在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.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>
我們也遇到了這個問題。 具體來說,我們注意到VS 2015 Update 1我們無法手動合並“.JSX”文件中的沖突。 使用以下線程作為靈感: https : //github.com/aspnet/Tooling/issues/293我們現在執行以下操作來解決此問題。 下面的示例適用於JSX文件,但這適用於任何基於文本的文件,只需修改文件類型的說明即可。
1)在HTML編輯器中指向.JSX文件:
2)禁用HTML編輯器的“識別有用擴展”:
那應該解決這個問題。 解決方法是我們欺騙VS而不尋找.JSX文件的有用擴展。 我已向MS提交了VS錯誤報告。
我對底層問題的猜測是,VS正在為“jsx”尋找有用的擴展,或者找不到任何有用擴展的其他文件。 結果是null ref / object未設置為實例異常。
更新::根據Mads on GitHub ,該問題已作為Visual Studio 2015的.NET核心工具預覽1的一部分得到修復。 感謝Burak_Karakuş的評論!
更新2 ::我已經看到這種解決辦法不起作用的情況。 在那種情況下,將擴展名映射到“帶編碼的源代碼(文本)編輯器”解決了崩潰問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.