Dear Xavier,
i also experience the same problems. The app runs fine, till i enable the ".NET Native Toolchain". It's an Xamarin.Forms App for UWP.
After several problems i finally get these exceptions, only when .net native toolchain is enabled.
System.Reflection.MissingRuntimeArtifactException: 'Cannot retrieve a MethodInfo for this delegate because the method it targeted (Void Xamarin.Forms.Platform.UWP.Platform.OnPageAlert(Object, AlertArguments)) was not enabled for metadata using the Dynamic
attribute. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=616868'
I recognized the link in the exception and i tried following its instructions, so i changed the Default.rd.xml to this:
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<!--
An Assembly element with Name="*Application*" applies to all assemblies in
the application package. The asterisks are not wildcards.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<!-- Add your application specific runtime directives here. -->
<Type Name="Xamarin.Forms.Platform.UWP.WindowsPlatformServices" Serialize="Required All" />
<Type Name="Xamarin.Forms.Platform.UWP.Platform">
<MethodInstantiation Name="OnPageAlert" Arguments="System.Object, Xamarin.Forms.Internals.AlertArguments" Dynamic="Required" />
</Type>
<Type Name="System.EventHandler" Dynamic="Required All" />
</Application>
</Directives>
but it does not change the behavior at all.
Any hint for that?
cheers,
Chris
Sent from my Windows PC :)