I have been struggling with an issue where I has a .NET MAUI Blazor hybrid worked just fine in hot restart when connecting to my PC (both Debug and Release Modes).
After a lot of trials, it seems this is happening even in .NET MAUI Blazor out of the box template.
This seems to be an issue in .NET MAUI. The workaround is to use interpreter instead of AOT. Simply add this line to the Project file:
<PropertyGroup>
<UseInterpreter Condition="$(TargetFramework.EndsWith('-ios'))">true</UseInterpreter>
</PropertyGroup>
Reference: https://github.com/dotnet/maui/issues/9597
Leave a comment