Nadeem Shaikh
Nadeem Shaikh

Reputation: 362

Xamarin UWP release mode Error - ILT005 returned exit code 1

I am developing Xamarin UWP app for Active Directory login. This application builds well in Debug mode but in Release mode it is throwing below error.

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

I am using VS 2017 and had installed two Nuget packages

1) Microsoft.IdentityModel.Clients.ActiveDirectory Version - 3.19.2 2) Microsoft.NETCore.UniversalWindowsPlatform Version - 6.0.8

I have been facing this problem since many days and had tried to search for solution on almost every site but did not find any proper solution.

Any help will highly appreciated.

Thanks.

Upvotes: 5

Views: 1420

Answers (1)

Nico Zhu
Nico Zhu

Reputation: 32775

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

Please try to uncheck Compile with .Net Native tool chain option in project property. It will work.

enter image description here

Upvotes: 3

Related Questions