Release build crashes caused by XAML issues #18532
Unanswered
williambuchanan2
asked this question in
General
Replies: 1 comment 1 reply
-
How are you getting the stack traces? We've implemented Raygun's MAUI crash reporting and it reports back what XAML caused the crash (for some crashes) in release builds. |
Beta Was this translation helpful? Give feedback.
1 reply
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 all
We are having several issues where everything works ok on our local devices, but then crashes when we deploy release builds.
We have identified this is mostly caused by bugs in our XAML code.
I am guessing there is some difference with XAML in release vs debug build (possibly compilation?). The issue is debug seems to be more forgiving with problems, which means it is only after release that they come to light.
The problem is these bugs are very hard to find. The stack trace shows you nothing of value, so you need to keep doing repeated releases with additional error finding code which is immensely time consuming.
Does anyone know a) what is causing this, and b) what I can do about it to find these issues while debugging?
I have set this in App:
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
I have also added this to the code behind (not sure I need to because of the above?):
[XamlCompilation(XamlCompilationOptions.Compile)]
Should I be doing something else?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions