System.Private.CoreApp.dll не найден во время NET Собственная сборка UWP - PullRequest
0 голосов
/ 25 февраля 2020

Я пытаюсь собрать geewallet (ветвь внешнего интерфейса) с UWP и. NET Native.

Во время сборки VS2019 жалуется:

ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\x86\ilc\ilc.exe --gatekeeper @"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\intermediate\gkargs.rsp"' returned exit code 1

Так Я попытался выполнить эту команду в PowerShell, чтобы увидеть сообщение об ошибке:

PS C:\Users\janus> & 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\x86\ilc\ilc.exe' --gatekeeper C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\intermediate\gkargs.rsp
Microsoft (R) .NET Native Gatekeeper Version 2.2.27913.00
Copyright (C) Microsoft Corporation.  All rights reserved.

Error: System.Private.CoreLib.dll was not found in any of the library paths ''. Please ensure
System.Private.CoreLib.dll is found within one of the directories specified with the /Lib command line switch.

Но когда я смотрю в файл rsp, он содержит:

"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\BouncyCastle.Crypto.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Common.Logging.Core.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\FSharp.Core.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\FSharp.Data.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\GWallet.Backend.NetStandard.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\GWallet.Frontend.XF.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\GWallet.Frontend.XF.UWP.exe"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\HtmlAgilityPack.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\JsonRpcSharp.Client.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\JsonRpcSharp.IpcClient.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\JsonRpcSharp.RpcClient.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\JsonRpcSharp.TcpClient.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\JsonRpcSharp.WebSocketClient.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Microsoft.Extensions.Logging.Abstractions.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Microsoft.Graphics.Canvas.winmd"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\NBitcoin.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\NBitcoin.Altcoins.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.ABI.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.Accounts.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.Contracts.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.Hex.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.KeyStore.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.RLP.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.RPC.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.Signer.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.StandardTokenEIP20.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.Util.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Nethereum.Web3.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Newtonsoft.Json.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\SharpRaven.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\SkiaSharp.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\SkiaSharp.Extended.Svg.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Xamarin.Essentials.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Xamarin.Forms.Core.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Xamarin.Forms.Platform.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Xamarin.Forms.Platform.UAP.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\Xamarin.Forms.Xaml.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\ZXing.Net.Mobile.Core.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\ZXing.Net.Mobile.Forms.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\ZXing.Net.Mobile.Forms.WindowsUniversal.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\zxing.portable.dll"
"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\ZXingNetMobile.dll"
/Lib:"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in"
/Lib:"C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\x86\ilc\lib\Private"
/WinMD:"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\WinMetadata\Microsoft.UI.Xaml.winmd"
/WinMD:"C:\Users\janus\source\repos\geewallet\src\GWallet.Frontend.XF.UWP\obj\x86\Debug\ilc\in\WinMetadata\Windows.winmd"
/VSTelemetrySessionSettings:"{"IsOptedIn":true,"HostName":"Dev14","AppInsightsInstrumentationKey":"f144292e-e3b2-4011-ac90-20e5c03fbce5","AsimovInstrumentationKey":"AIF-312cbd79-9dbb-4c48-a7da-3cc2a931cb70","AppId":1001,"UserId":"a8b38a81-e7fa-4be2-b507-3643586b22d7","Id":"3dcd9d77-cdc7-4ab5-8530-191810e0b2ec","ProcessStartTime":637181715992395788}"
/RdXmlPath:"C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.7-rel-27913-00\tools\LibraryXML"
/RunOnlyPreDR

Этот файл содержит lib говоря "/ Lib:" и заканчивая "Private". Если я посмотрю в этом каталоге, он содержит «System.Private.CoreApp.dll».

Так почему я получаю это сообщение об ошибке, если файл был сгенерирован правильно? Как я могу исправить сборку?

...