Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net Native - Type not included in compilation

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?

like image 518
razor118 Avatar asked Oct 20 '22 01:10

razor118


1 Answers

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" />
like image 133
razor118 Avatar answered Oct 21 '22 16:10

razor118