Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Renderer library not loaded at runtime

$
0
0

It seems that if a custom renderer is in its own library (that is referenced by the main library), and nothing in the renderer library is directly referenced, then it doesn't get loaded at runtime and therefore the renderer doesn't get registered.

Im having to put a line of code like this in my main project in order for the renderer project to get loaded:

var dummy = new MyCustomRenderer();

I can understand how this situation arises, an efficiency is not to load types that aren't directly referenced, and if there are no types at all that are directly referenced then the entire library may get ignored (before the ExportRenderer attribute is called into action).

I have a work around as detailed above, but are there any plans to fix this issue ?

Thanks

Dean


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>