【问题标题】:Building the release version of UWP project results in error构建 UWP 项目的发布版本导致错误
【发布时间】:2019-02-09 22:26:56
【问题描述】:

当我在针对 Windows 10, version 1803 的 UWP 项目中激活 .NET Native tool chain 时,出现以下错误:


Error       Error: NUTC1056:Internal Compiler Error: 0x8000ffff. Error encountered while compiling method 'instance System.Void Premy.Chatovatko.Client.Views.CertificateSelection.InitializeComponent()'.  Premy.Chatovatko.Client.UWP         
Error       ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.native.compiler\2.1.8\tools\x86\ilc\Tools\nutc_driver.exe @"C:\Chatovatko\Premy.Chatovatko\Premy.Chatovatko.Client\Premy.Chatovatko.Client.UWP\obj\x86\Release\ilc\intermediate\MDIL\Chatovatko.rsp"' returned exit code 1 Premy.Chatovatko.Client.UWP     

该项目使用Xamarin.Forms 3.1.0Microsoft.NETCore.UniversalWindowsPlatform 6.1.7。 (这个解决方案在Github

有人知道吗,请问我能用它做什么?

【问题讨论】:

  • 我在负责该组件的人员附近工作。我已经给他们发了邮件。如果您想获得更直接和即时的回复,您可以直接给我发邮件。 :-) dotnetnative@microsoft.com

标签: visual-studio xamarin.forms uwp xamarin.uwp .net-native


【解决方案1】:

这里报错一般是代码尝试构造委托,但是委托使用的目标方法的签名确实与委托的签名匹配。例如,您的 XAML 中有一个按钮,而用于按钮单击事件的方法与 EventHandler 委托的签名不匹配:EventHandler(object sender, EventArgs e)。

在上面提供的 Github 解决方案中,存在一些不匹配的问题。例如 Premy.Chatovatko.Client.Views.CertificateSelection 中的 Generate() 和 LoadFromFile()

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多