Prism
Prism copied to clipboard
[BUG] Object reference not set to an instance of an object when UseMauiCompatibility is enabled
Description
Run the sample at this repo https://github.com/giuseppenovielli/Prism-MAUI-Samples
Steps to Reproduce
- Download sample code from https://github.com/giuseppenovielli/Prism-MAUI-Samples
- Run the Windows version of the project
- See the error
Platform with bug
.NET MAUI
Affected platforms
Android, Windows, I was not able test on other platforms
Did you find any workaround?
No
Relevant log output
Stack trace
at Microsoft.UI.Xaml.Window.get_ThisPtr()
at Microsoft.UI.Xaml.Window.op_Equality(Window x, Window y)
at Microsoft.UI.Xaml.Window.op_Inequality(Window x, Window y)
at Microsoft.Maui.Controls.Compatibility.Forms.SetupInit(IMauiContext mauiContext, Window mainWindow, IEnumerable`1 rendererAssemblies, Nullable`1 maybeOptions)
at Microsoft.Maui.Controls.Compatibility.Forms.Init(IActivationState state, Nullable`1 options)
at Microsoft.Maui.Controls.Compatibility.Hosting.AppHostBuilderExtensions.<>c.<OnConfigureLifeCycle>b__1_0(Application app, LaunchActivatedEventArgs args)
at Microsoft.Maui.MauiWinUIApplication.<>c__DisplayClass1_0.<OnLaunched>b__2(OnLaunching del)
at Microsoft.Maui.LifecycleEvents.LifecycleEventServiceExtensions.InvokeLifecycleEvents[TDelegate](IServiceProvider services, Action`1 action)
at Microsoft.Maui.MauiWinUIApplication.OnLaunched(LaunchActivatedEventArgs args)