我正在尝试在整个解决方案中进行查找和替换,但每次尝试时,它都会使视频工作室崩溃:
Visual Studio 20 **已停止工作
只有当我在整个解决方案或当前项目中执行查找并替换所有内容时才会发生这种情况 - 如果我在所有打开的文件上执行此操作,它将会起作用(但我不希望每次都打开所有文件)想要做到这一点),并找到整个解决方案的所有工作,无论解决方案有多小,它都会崩溃 - 我在一个文件项目上尝试过它
通过查看VS崩溃的各种原因,我尝试了以下但没有成功:
清理并重建解决方案
删除%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
从SafeMode开始
使用日志记录运行VS,但它在记录崩溃原因之前似乎崩溃 - 请参阅下面的代码片段中的log xml中的错误。我认为这些都是在加载时发生的,而不是在崩溃发生时,因为我尝试加载然后关闭vs并获得相同的错误。有关日志的完整副本,check this fiddle
<entry>
<record>235</record>
<time>2016/06/03 09:12:57.703</time>
<type>Error</type>
<source>VisualStudio</source>
<description>PkgDef syntax or I/O error at line 1: Section header: missing closing bracket</description>
<hr>80004005 - E_FAIL</hr>
<path>The contents of this file have moved.</path>
</entry>
<entry>
<record>236</record>
<time>2016/06/03 09:12:57.703</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Could not process PkgDef file</description>
<hr>80004005 - E_FAIL</hr>
<path>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\VsGraphics\RegisteredDefaultEngines.pkgdef</path>
</entry>
<entry>
<record>242</record>
<time>2016/06/03 09:12:57.704</time>
<type>Error</type>
<source>VisualStudio</source>
<description>PkgDef syntax or I/O error at line 1: Section header: missing closing bracket</description>
<hr>80004005 - E_FAIL</hr>
<path>The contents of this file have moved.</path>
</entry>
<entry>
<record>243</record>
<time>2016/06/03 09:12:57.704</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Could not process PkgDef file</description>
<hr>80004005 - E_FAIL</hr>
<path>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\VsGraphics\VsGraphicsLaunchHookPkg.pkgdef</path>
</entry>
<entry>
<record>1851</record>
<time>2016/06/03 09:13:01.431</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Failed to read Version</description>
<hr>80070002</hr>
</entry>
<entry>
<record>1852</record>
<time>2016/06/03 09:13:01.431</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Binding Redirect / CodeBase entry from configuration hive is malformed, ignoring.</description>
<hr>80070002</hr>
<path>Software\Microsoft\VisualStudio\14.0_Config_16920\RuntimeConfiguration\dependentAssembly\bindingRedirection\{BB256134-B73E-47AA-93B4-C49FF433E5B1}</path>
</entry>
<entry>
<record>1885</record>
<time>2016/06/03 09:13:01.817</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Loading UI library</description>
<guid>{480D29DF-2B3D-445F-B055-FE2C74913A83}</guid>
<hr>800a006f</hr>
<errorinfo>Cannot find the requested resource: 'Menus.ctmenu'.</errorinfo>
</entry>
<entry>
<record>1886</record>
<time>2016/06/03 09:13:01.971</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Loading UI library</description>
<guid>{16CD70AB-0E04-4675-91FA-4910E09EAE56}</guid>
<hr>800a006f</hr>
<errorinfo>Cannot find the requested resource: 'Commands.ctmenu'.</errorinfo>
</entry>
<entry>
<record>1887</record>
<time>2016/06/03 09:13:02.224</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Loading UI library</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
<hr>800a006f</hr>
<errorinfo>Cannot find the requested resource: 'Menus.ctmenu'.</errorinfo>
</entry>
<entry>
<record>1889</record>
<time>2016/06/03 09:13:02.255</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Loading UI library</description>
<guid>{2EF1EC52-C8BF-4FE0-8ECE-BA9C0D5D1603}</guid>
<hr>800a006f</hr>
<errorinfo>Cannot find the requested resource: 'VSMenus.ctmenu'.</errorinfo>
</entry>
<entry>
<record>2291</record>
<time>2016/06/03 09:13:04.454</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Error loading extension: This VSIX does not apply to any product installed on this machine. The problem could be that the VSIX manifest's format is not recognized, or that the manifest has been corrupted. Data at the root level is invalid. Line 1, position 1. </description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\VSGRAPHICS\</path>
</entry>
<entry>
<record>2292</record>
<time>2016/06/03 09:13:04.493</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Error loading extension: This VSIX does not apply to any product installed on this machine. The problem could be that the VSIX manifest's format is not recognized, or that the manifest has been corrupted. Data at the root level is invalid. Line 1, position 1. </description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\VSGRAPHICS\</path>
</entry>
<entry>
<record>2293</record>
<time>2016/06/03 09:13:04.500</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID 'Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions' is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\P04KATKY.ORE\...</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TEAMFOUNDATION\TEAM EXPLORER\</path>
</entry>
<entry>
<record>2294</record>
<time>2016/06/03 09:13:04.501</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID '148ffa77-d70a-407f-892b-9ee542346862' is already loaded at C:\USERS\NGP\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\O3OMG1QP.PKM\...</description>
<path>C:\USERS\NGP\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\JYRLXX0C.PDK\</path>
</entry>
是否有人遇到此问题,知道如何解决,或了解我的日志文件足以看出问题所在?