Fix System.InvalidOperationException: .ctor is currently not enabled. To enable compatibility features you will need to call add `builder.UseMauiCompatibility()`. MauiApp .CreateBuilder() .UseMauiApp<TApp>() .UseMauiCompatibility(); in SplitViewPageRenderer.UpdateControllers () (/Users/USER/SimpleWeather/SimpleWeather.Maui/Maui/SimpleWeather.Maui/MaciOS/SplitViewPageHandler.cs:160)
thewizrd opened this issue · 0 comments
Version 5.9.2(859200)
Stacktrace
SimpleWeather.Maui.SplitViewPageRenderer.UpdateControllers() in /Users/USER/SimpleWeather/SimpleWeather.Maui/Maui/SimpleWeather.Maui/MaciOS/SplitViewPageHandler.cs:line 160;SimpleWeather.Maui
SimpleWeather.Maui.SplitViewPageRenderer.SetElement(VisualElement element) in /Users/USER/SimpleWeather/SimpleWeather.Maui/Maui/SimpleWeather.Maui/MaciOS/SplitViewPageHandler.cs:line 68;SimpleWeather.Maui
SimpleWeather.Maui.SplitViewPageRenderer.SetVirtualView(IElement view) in /Users/USER/SimpleWeather/SimpleWeather.Maui/Maui/SimpleWeather.Maui/MaciOS/SplitViewPageHandler.Platform.cs:line 48;SimpleWeather.Maui
SimpleWeather.Maui.Program.Main(String[] args) in /Users/USER/SimpleWeather/SimpleWeather.Maui/Maui/SimpleWeather.Maui/Platforms/iOS/Program.cs:line 13;SimpleWeather.Maui
Reason
System.InvalidOperationException: .ctor is currently not enabled. To enable compatibility features you will need to call add builder.UseMauiCompatibility()
.
MauiApp
.CreateBuilder()
.UseMauiApp()
.UseMauiCompatibility();