the UseMauiCompatibility() is to make Maui code compatible with old Xamarin Form renderers and handlers. Until you port the old code (or update the nuget package that requires it) you will need it.
Is UseMauiCompatibility needed in Net9
Derek
0
Reputation points
When I upgraded from .Net8 to .Net9 my Hot Restart stopped working and the app would crash after it displayed the splash screen. When I added the line ".UseMauiCompatibility()" in the MauiProgram.cs the app would then load without crashing.
Just want to confirm if this is needed in Net9 being I had no problem in Net8? This crash happens on iOS only.