.Net Native - Type not included in compilation

I found strange warning messages during .net compilation for the Universal App Platform - Windows 10.

C: \ Program Files (x86) \ MSBuild \ Microsoft.NetNative \ x86 \ ilc \ IlcInternals.targets (886.5): warning: Type 'Windows.UI.Xaml.Controls.Image' was not included in the compilation, but was specified in type "XT.Controls.VideoPlayer.VideoPlayerControl". Perhaps there was no assembly.

C: \ Program Files (x86) \ MSBuild \ Microsoft.NetNative \ x86 \ ilc \ IlcInternals.targets (886.5): warning: Type 'Windows.UI.Xaml.Controls.Button' was not included in the compilation, but was specified in type "XT.Controls.VideoPlayer.VideoPlayerControl". Perhaps there was no assembly.

The application does not work correctly in release mode. I get an error after splashscreen with MissingMetadataException, which requires debugging of RuntimeType.cs (missing).

Any ideas how to include these types in compilation?

+5
source share
1 answer

Due to the communication problem with Hans, this line of code has been resolved. Added to project properties Default.rd.xml

<Namespace Name="Windows.UI.Xaml" Dynamic="Required All" Serialize="Required Public" Browse="Required All" Activate="Required All" /> 
+2
source

Source: https://habr.com/ru/post/1232012/


All Articles