Replies: 3 comments
-
Could be a compile vs non-compiled xaml problem. Hot reload likes to ignore missing or incorrect tags whereas not so much when compiled. I add this to all my projects now for just this reason, maybe it will help you: <!-- Remove comment if XAML Parse errors are expected -->
<!--<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<_MauiForceXamlCForDebug>true</_MauiForceXamlCForDebug>
</PropertyGroup>--> As a bonus, your debug build will be much faster BUT you lose Hot Reload. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sounds much like CommunityToolkit/Maui#2415 and will be fixed in the next MCT release |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you both! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I just upgraded my app to .NET 9 and it works very well in debug. In release, it crashed. I kind of narrowed down the problem to my XAML style files. Specifically with CommunityToolkit "AppThemeResource" and friends.
I set to "false" the flag and it solved some of these problems, but not all.
I don't know what is doing the release mode that is affecting the XAML data. Does someone know what is happening? Maybe in release mode is activated some kind of trimmer?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions