gpt4 book ai didi

c# - .Net Native - 类型不包含在编译中

转载 作者:太空狗 更新时间:2023-10-29 23:30:09 24 4
gpt4 key购买 nike

我在通用应用程序平台 - Windows 10 的 .net native 编译过程中发现了奇怪的警告消息。

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.

应用程序在 Release模式下无法正常工作。我在出现需要调试 RuntimeType.cs(缺失)的 MissingMetadataException 启动画面后崩溃。

关于如何在编译中包含这些类型有什么想法吗?

最佳答案

关于汉斯的链接问题是通过这行代码解决的。添加到项目属性 Default.rd.xml

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

关于c# - .Net Native - 类型不包含在编译中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32713558/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com