代码之家  ›  专栏  ›  技术社区  ›  Zea Shah

Xamarin。使用编译时,表单UWP项目引发异常。Net本机

  •  2
  • Zea Shah  · 技术社区  · 7 年前

    系统反射缺失元数据异常: “Xamarin。形式。站台UWP。缺少WindowsPlatformServices 元数据。有关更多信息,请访问 http://go.microsoft.com/fwlink/?LinkID=392859 '

    此外,我在默认设置中添加了以下几行。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" />
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   Nico Zhu    7 年前

    通过在 default.rd.xml

    <Type Name="Xamarin.Forms.Platform.UWP.WindowsPlatformServices" Serialize="Required All" />