razor118
razor118

Reputation: 473

.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?

Upvotes: 5

Views: 1805

Answers (1)

razor118
razor118

Reputation: 473

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" />

Upvotes: 3

Related Questions