Reputation: 5395
My UWP Xamarin.Forms works fine in Debug mode, but crashes in release. This is MenuPage.xaml.g.cs:
I was able to get deeper, please see FreshPageModelResolver.ResolvePageModel() throws an exception in UWP Release
What could be the cause of this?
Upvotes: 1
Views: 492
Reputation: 481
It could have something to do with your linker options - for Release "Link Framework SDK's only" is often selected, while "Don't link" is selected for Debug.
Try setting "Don't link" for your Release config and see if that is the issue - if yes, you need to figure out what is being linked which it shouldn't, and include it.
Hope it helps :)
Upvotes: 1