Zea Shah
Zea Shah

Reputation: 382

Xamarin.Forms UWP project throws exception when compiled with .Net Native

I have UWP Xamarin.Forms project, I enabled "Compile with .NET Native tool chain" option in my UWP Project, but when running the App it is throwing below error:

System.Reflection.MissingMetadataException: ''Xamarin.Forms.Platform.UWP.WindowsPlatformServices' is missing metadata. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=392859'

Also I have added below lines in my default.rd.xml file:

<Type Name="System.EventHandler" Dynamic="Required All" /> 
 <Namespace Name="System.Reflection" Serialize="Required All" />
 <Namespace Name="System.Private.Reflection.Core" Serialize="Required All" />

Upvotes: 2

Views: 395

Answers (1)

Nico Zhu
Nico Zhu

Reputation: 32785

This issue was solved by adding below lines in the default.rd.xml file.

<Type Name="Xamarin.Forms.Platform.UWP.WindowsPlatformServices" Serialize="Required All" /> 

Upvotes: 0

Related Questions