UWP app starts on startup when compiled with .net native

102 Views Asked by At

My UWP app crashes on startup with the following exception when built with .net native (debug or release):

Exception thrown: 'System.Reflection.MissingMetadataException' in System.Private.Interop.dll
Windows.Foundation.IReference`1<Double>

It works without issues when running without .net native in debug mode. I tried to add the following runtime directive to prevent it being stripped, but without success:

<Type Name="Windows.Foundation.IReference{Double}" Dynamic="Required All" />

My Min and target version are: enter image description here

0

There are 0 best solutions below