C#C
C#16mo ago
Peggun

WinUI 3 App.g.i.cs Autogen File breaking?

I am trying to create a WinUI 3 Application and I added some code and now the autogenerated file App.g.i.cs throws a break. Here is the code that breaks it, and e, doesnt have a stack trace

App.g.i.cs
#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
            UnhandledException += (sender, e) =>
            {
                if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
            };
#endif


I have a feeling its something to do with InitializeComponent but im not sure.

Here are the errors
image.png
Was this page helpful?