c# - Xamarin UWP Release模式错误 - ILT005 返回退出代码 1

标签 c# xamarin uwp active-directory

我正在开发用于 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 选项。它会起作用。

enter image description here

关于c# - Xamarin UWP Release模式错误 - ILT005 返回退出代码 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49131621/

相关文章:

c# - 自动递增主键的SQLite表

iOS 应用程序在苹果应用程序审查中崩溃,但在本地完全无法重现

c# - 静态构造函数好像没有被调用?

c# - 重启/重启 UWP 应用

c# - 带有自定义类键的慢字典

c# - 具有泛型的隐式运算符不适用于接口(interface)

ios - 无法在Xamarin iOS上使用自定义字体

c# - MvxSidebarPresentationAttribute 未在演示者字典中配置

azure - 使用自定义程序运行 Windows 10 Core 的 Raspberry Pi 3 显示划掉的 x

c# - 当您升级到 C# 3.0/VS2008 时,您的编码标准文档有何变化?