我正在开发用于 Active Directory 登录的 Xamarin UWP 应用程序。此应用程序在 Debug模式下构建良好,但在 Release模式下会抛出以下错误。
Severity Code Description Project File Line Suppression State Error ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\ NuGetPackagesFallback\ microsoft.net.native.compiler\ 1.7.3\ tools\ x86\ilc\Tools\Gatekeeper.exe @"I:...\obj\x86\Release\ilc\intermediate\gkargs.rsp"' returned exit code 1 SampleWinApp
我正在使用 VS 2017 并安装了两个 Nuget 包
1) Microsoft.IdentityModel.Clients.ActiveDirectory 版本 - 3.19.2 2) Microsoft.NETCore.UniversalWindowsPlatform 版本 - 6.0.8
很多天以来,我一直面临这个问题,并尝试在几乎每个站点上搜索解决方案,但没有找到任何合适的解决方案。
任何帮助将不胜感激。
谢谢。
最佳答案
Severity Code Description Project File Line Suppression State Error ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\ NuGetPackagesFallback\ microsoft.net.native.compiler\ 1.7.3\ tools\ x86\ilc\Tools\Gatekeeper.exe @"I:...\obj\x86\Release\ilc\intermediate\gkargs.rsp"' returned exit code 1 SampleWinApp
请尝试取消选中项目属性中的 Compile with .Net Native tool chain
选项。它会起作用。
关于c# - Xamarin UWP Release模式错误 - ILT005 返回退出代码 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49131621/