0

I created PCL library to keep all custom renderers for UWP. This PCL added to another cross platform application. its working in debug mode.

But working in release mode.

need help

regards Sumith

JKennedy
  • 18,150
  • 17
  • 114
  • 198
sumith
  • 29
  • 1
  • 7

1 Answers1

0

This is a known issue with Xamarin.Forms for UWP.

To fix it you must register your PCL at start up like so:

// you'll need to add `using System.Reflection;`
List<Assembly> assembliesToInclude = new List<Assembly>();

//Now, add in all the assemblies your app uses
assembliesToInclude.Add(typeof(ClassInYourPCL).GetTypeInfo().Assembly);

//Also do this for all your other 3rd party libraries

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

For more info see here

JKennedy
  • 18,150
  • 17
  • 114
  • 198