构建UWP项目的发布版本会导致错误

问题描述 投票:2回答:1

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


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

有谁有任何想法,我能用它做什么,拜托?

visual-studio xamarin.forms uwp xamarin.uwp .net-native
1个回答
2
投票

此处报告的错误通常是在代码尝试构造委托时引起的,但是用于委托的目标方法的签名确实与委托的签名匹配。例如,XAML中有一个按钮,用于按钮单击事件的方法与EventHandler委托的签名不匹配:EventHandler(对象发送者,EventArgs e)。

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

© www.soinside.com 2019 - 2024. All rights reserved.