question

41629381 avatar image
0 Votes"
41629381 asked HuiLiu-MSFT commented

Vs2019中的xaml设计器问题. Xaml designer problem in vs2019

今天在使用Vs2019的xaml设计器为WPF设计页面时,突然设计器抛出了未经处理的异常:XAML 设计器已意外退出。(退出代码: e0434352)。尝试重新加载或仅显示平台控件都没有用处。
Vs版本:专业版,16.10.4
系统版本:Windows 10 , 专业版,21H1 , 19043.1110
.Net 版本:.net 5.0


An unexpected exception was thrown when the xaml designer exited unhandled( Exit code: e0434352). It's no use trying to reload or just show platform controls.
Vs version: professional version, 16.10.4
System version: Windows 10, professional edition, 21h1, 19043.1110
dotnet version : dotnet 5.0

随后我创建了一个新项目,问题没有发生。
Then I created a new project and the problem didn't happen.

项目中添加了一个外部nuget包的引用,另外这个项目是不久之前从.Net Framework迁移过来的
A reference to an external nuget package was added to the project. In addition, the project was migrated from the. Net framework not long ago

所有在这个项目中的窗口(WPF)都出现了问题,包括新建的,但在其他项目中正常。
All windows (WPF) in this project have problems, including new ones, but they are normal in other projects.

我可以正常生成项目,代码与xaml中没有任何错误。
I can generate the project normally without any errors in the code and XAML.

dotnet-wpf-xaml
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@41629381 . 0xe0434352 is the SEH code for a CLR exception. Probably your process is not handling a CLR exception. Get ahead by writing an event handler for AppDomain.CurrentDomain.UnhandledException and log the value of e.ExceptionObject.ToString() . And Application.ThreadException may also help you.


0 Votes 0 ·

0 Answers