Xamarin.Forms UWP app crashes in release mode

南楼画角 提交于 2019-12-11 18:42:19

问题


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

Added

I was able to get deeper, please see FreshPageModelResolver.ResolvePageModel() throws an exception in UWP Release

What could be the cause of this?


回答1:


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 :)



来源:https://stackoverflow.com/questions/58712258/xamarin-forms-uwp-app-crashes-in-release-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!