David Shochet
David Shochet

Reputation: 5395

Xamarin.Forms UWP app crashes in release mode

My UWP Xamarin.Forms works fine in Debug mode, but crashes in release. This is MenuPage.xaml.g.cs:

What can cause this?

Added

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

Answers (1)

Mathias Kirkegaard
Mathias Kirkegaard

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

Related Questions