我有一个winui3项目,当我运行它时,它停止并显示这个
调用堆栈:
App1.dll!App1.App.InitializeComponent.AnonymousMethod__4_2(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
调试日志:
Exception thrown: 'System.ArgumentException' in WinRT.Runtime.dll
WinRT information: Not implemented
The program '[15308] App1.exe' has exited with code 4294967295 (0xffffffff).
相关代码:
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
namespace App1 {
public sealed partial class App : Application {
public static MainWindow m_window = new();
public App() {
// init
this.InitializeComponent();
}
}
}
我发现我无法运行这条线
this.InitializeComponent();