'Requirement for [Preserve (AllMembers = true)] in every View?
I have a Xamarin Forms UWP and Android app. It started crashing on startup in Android Release mode only. I located the problem as Xamarin Android app crashes in release mode (default constructor not found) .
It appears that I need a Preserve AllMembers in every View. Why is the linker apparently unaware of Shell pages that are invoked utterly "normally" from AppShell FlyoutItem Route?
Is there something I should be doing globally to avoid this problem rather than putting a Preserve in every View?
I understand that I can turn off User Assembly linking but my understanding is that that is not a best practice. Am I not correct?
FWIW the app used to work in Android Release mode. I do not recall what might have changed; perhaps the linking specification.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
