切换到WPF应用程序的设计视图时,Visual Studio 2008 SP1崩溃的原因

Jas*_*son 18 wpf powercommands visual-studio-2008

在开发没有Source Control的WPF应用程序之后,我决定将解决方案添加到TFS.

每当我打开设计视图中的主窗口.xaml文件时,Visual Studio将会消失,并在应用程序事件日志中记录以下事件:

.NET运行时版本2.0.50727.3053 - 致命执行引擎错误(7A035E00)(80131506)

有关详细信息,请参阅http://go.microsoft.com/fwlink/events.asp上的"帮助和支持中心" .

Jas*_*son 8

该问题是由名为"Visual Studio 2008的Power Commands"的Visual Studio加载项引起的.

卸载它们并重新启动Visual Studio后,xaml文件的设计视图开始正常工作.


小智 5

同样的问题,但没有安装Power Commands.我能够一直使用的唯一解决方法是在打开任何xaml文件之前清理/重建解决方案.如果由于XAML在启动时加载而无法进入解决方案,请删除suo.


Zha*_*uid 5

如果您希望安装Visual Studio 2008的Power Commands,请在此处查看此解决方法:

PowerCommands崩溃VS2008 SP1

但基本上:

解决方法是对devenv.exe.config文件进行简单修改.

这将存在于(64位系统)C:\ Program Files(x86)\ Microsoft Visual Studio 9.0\Common7\IDE中

或(32位系统)C:\ Program Files\Microsoft Visual Studio 9.0\Common7\IDE

将此XML标记添加到dependentAssembly列表.他们让我在办公室之后添加它,但我不确定这是否重要.

<dependentAssembly>
  <assemblyIdentity name="office" publicKeyToken="71e9bce111e9429c" culture="neutral"/>
  <codeBase version="12.0.0.0" href="PrivateAssemblies\Office12\Office.dll"/>
</dependentAssembly>

<!-NEW STUFF-->
<dependentAssembly>
  <assemblyIdentity name="Microsoft.PowerCommands" publicKeyToken="null" culture="neutral"/>

  <!-- For 64-bit systems, uncomment this one
  <codeBase version="1.1.0.0" href="C:\Program Files (x86)\PowerCommands\Microsoft.PowerCommands.dll"/> -->

  <!-- For 32-bit systems, uncomment this one
  <codeBase version="1.1.0.0" href="href="C:\Program Files\PowerCommands\Microsoft.PowerCommands.dll"/> -->

</dependentAssembly>
Run Code Online (Sandbox Code Playgroud)

这对我很有用.