我的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.

 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.__Error.WinIOError()

at System.IO.Path.InternalGetTempFileName(Boolean checkHost)

at Microsoft.VisualStudio.Text.Utilities.WpfHelper.LoadCursorDPIAware(Stream cursorStream)

at Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMargin.get_RightArrowCursor()

at Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMarginProvider.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)

at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__2(IWpfTextViewMarginProvider mp)

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
在类似的情况下它对我有帮助