UWP以调试模式而不是发布模式/.NET本机工具链ILT0005进行编译

时间:2018-08-28 19:18:14

标签: .net visual-studio build uwp

我有一个UWP项目,它依赖于几个软件包(例如Template 10,EF Core,NewtonSoft)和类库<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>

在调试模式下运行时,一切正常,在尝试以发布模式构建或使用.NET本机工具链时,出现以下错误:

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:\Source\Repos-2017-software\eVend\eVend\eTouchRetail\obj\x86\Debug\ilc\intermediate\MDIL\eTouchRetail.rsp"' returned exit code -1073740791

对于不同的TypesMethods,还会出现类似以下的多个错误:

Type 'Windows.UI.Xaml.Controls.RefreshContainer' from assembly 'Windows.Foundation.UniversalApiContract' was not included in compilation, but was referenced in type 'Microsoft.Toolkit.Uwp.UI.Controls.PullToRefreshListView'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.   

我在错误窗口中看到很多警告,如下所示:

The referenced component 'C:\Users\shaun\.nuget\packages\netstandard.library\2.0.2\build\netstandard2.0\\ref\System.Linq.Expressions.dll' could not be found.       

这是怎么回事?我该如何诊断?

0 个答案:

没有答案
相关问题