Attempted to switch to Xaml compilation by adding "[XamlCompilation(XamlCompilationOptions.Compile)]" to my Xaml pages as described here: https://developer.xamarin.com/guides/xamarin-forms/xaml/xamlc/. However, doing this results in a TypeLoadException (in Debug) or a linker failure (in Release). In both cases it is occurring in InitializeComponent(), and it is looking for, but cannot find, Xamarin.Forms.Internals.ResourceLoader.
Only happens in Android, not UWP. (Can't test iOS)
What am I doing wrong?