VS2013崩溃,当我去团队资源管理器并单击'Changes'



我的VS2013安装从未发生过任何崩溃,但本周它在启动时开始显示此错误:

An exception has been encountered. This may be caused by an extension. You can get more information by bexamining the file (...)AppDataRoamingMicrosoftVisualStudio12.0ActivityLog.xml

然后它正确打开,我就可以正常工作了。但是,当我尝试提交本地更改并打开团队资源管理器并单击更改时,Visual Studio会崩溃。

我查看了ActivityLog.xml,发现了这个错误:

<entry>
<record>179</record>
<time>2015/02/27 17:51:35.065</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.IO.IOException: The file exists.&#x000D;&#x000A;&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   
at System.IO.__Error.WinIOError()&#x000D;&#x000A;   
at System.IO.Path.InternalGetTempFileName(Boolean checkHost)&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.Utilities.WpfHelper.LoadCursorDPIAware(Stream cursorStream)&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMargin.get_RightArrowCursor()&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMarginProvider.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.&lt;AddMargins&gt;b__2(IWpfTextViewMarginProvider mp)&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)</description>
</entry>

我尝试删除我的所有项目,再次克隆它们,但这种情况仍然存在。有人能帮我弄清楚吗?

发现发生了什么。发生这种情况是因为我的Windows Temp文件夹有超过65535个文件。必须清理我的Temp文件夹(---\User\AppData\Local\Temp)

发现位置:

System.IO.IO异常:";文件存在";当使用System.IO.Path.GetTempFileName()时-分辨率?

我认为这不是一个重复的问题。这特别针对VS2013。

尝试

devenv.exe /setup

在类似的情况下它对我有帮助

相关内容

最新更新