5
votes

I found weird warning messages during .net native compilation for 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 compilation, but was referenced in type 'XT.Controls.VideoPlayer.VideoPlayerControl'. There may have been a missing 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 compilation, but was referenced in type 'XT.Controls.VideoPlayer.VideoPlayerControl'. There may have been a missing assembly.

Application is not working correctly in release mode. I get crash after splashscreen with MissingMetadataException that requires to debug RuntimeType.cs (missing).

Any ideas how can I include these types in compilation?

1
Thanks Hans, I've added parameters like this: <Namespace Name="Windows.UI.Xaml.Controls" Dynamic="Required Public" Serialize="Required Public" Browse="Required Public" Activate="Required Public" /> I am still getting compiler warnings.razor118

1 Answers

3
votes

In connection to Hans link problem is solved by this line of code. Added to project properties Default.rd.xml

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