简体   繁体   中英

Can't build Xamarin.Forms app for UWP in release mode

Stackoverflow community!

I can't build release version of app, because it crashes on this line of code. I try remove assemblies to include... But this not resolve my issue.

List<Assembly> assembliesToInclude = new List<Assembly>();
assembliesToInclude.Add(typeof(CarouselViewRenderer).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(UWPShadowsRenderer).GetTypeInfo().Assembly);

Xamarin.Forms.Forms.Init(e, assembliesToInclude);

Help me please.

Thank you! Best wishes!

I resolve this problem. In my project was a package that caused this problem. When I delete package project became working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM