【发布时间】:2018-02-19 06:49:32
【问题描述】:
我有 UWP Xamarin.Forms 项目,我在我的 UWP 项目中启用了“使用 .NET Native 工具链编译”选项,但是在运行应用程序时会抛出以下错误:
System.Reflection.MissingMetadataException: ''Xamarin.Forms.Platform.UWP.WindowsPlatformServices' 丢失 元数据。欲了解更多信息,请访问 http://go.microsoft.com/fwlink/?LinkID=392859'
我还在我的 default.rd.xml 文件中添加了以下行:
<Type Name="System.EventHandler" Dynamic="Required All" />
<Namespace Name="System.Reflection" Serialize="Required All" />
<Namespace Name="System.Private.Reflection.Core" Serialize="Required All" />
【问题讨论】:
-
你试过用这个solution吗?
-
@NicoZhu-MSFT 是的,我试过了,但没有用,我在 default.rd.xml 中添加了以下行,最后它确实有效:
-
好的,我可以将您的评论转换为此问题的答案吗?
-
@NicoZhu-MSFT 当然。
标签: c# xamarin xamarin.forms uwp xamarin.uwp