Articles in this section
Category / Section

How to overcome the crash System.Reflection.MissingMetadataException when UseDotNetNativeToolChain is enabled in UWP?

1 min read

In UWP platform, the “System.Reflection.MissingMetadataException ” raises while compiling the application using SfListView in Release mode. It is raised due to UseDotNetNativeToolChain (.Net Native Tool Chain) is enabled, because reflection is being used internally for sorting, grouping and filtering features in DataSource.

However, the issue can be solved in application level, by adding the below directives under Default.rd.xml file in the application of UWP project.

<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
  <Library Name="Syncfusion.DataSource.Portable">
    <Type Name="System.Linq.EnumerableExecutor{System.Int32}" Dynamic="Required Public" />
    <Type Name="System.Collections.ObjectModel.ObservableCollection{}" Dynamic="Required Public" />
    <Namespace Name="System.Linq" Dynamic="Required All" />
  </Library> 
</Directives> 

 

Click here to download the sample.

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied