2
votes

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" />
1
Have you tried to use this solution?Nico Zhu - MSFT
@NicoZhu-MSFT Yes I tried that but it didn't worked, I added below line in my default.rd.xml and finally it did worked: <Type Name="Xamarin.Forms.Platform.UWP.WindowsPlatformServices" Serialize="Required All" />Zea Shah
Good, May I convert your comment to the answer for this issue?Nico Zhu - MSFT
@NicoZhu-MSFT Sure.Zea Shah

1 Answers

0
votes

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

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