I have a winui3 project, and when I run it, it stops and show this
Call stack :
App1.dll!App1.App.InitializeComponent.AnonymousMethod__4_2(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
Debugging logs :
Exception thrown: 'System.ArgumentException' in WinRT.Runtime.dll
WinRT information: Not implemented
The program '[15308] App1.exe' has exited with code 4294967295 (0xffffffff).
Relevant code :
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();
}
}
}
I found out that i can't run this line this.InitializeComponent();