none
[UWP] Unable to build application with "compile with .NET Native tool chain" option returned exit code -532462766 RRS feed

  • Question

  • 1>  Starting .NET Native compilation
    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(318,5): error : Unhandled Exception: OutOfMemoryException.
    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(318,5): error : ILT0005: 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\tools\Gatekeeper.exe @"F:\CSharp\JavneNabavkeSolution\JavneNabavkeSolution\JavneNabavkeSolution.UWP\obj\ARM\Debug\ilc\intermediate\gkargs.rsp"' returned exit code -532462766
    ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

    I am trying to publish app but getting this type of error. Added assemblys to a app.xaml.cs

     List<Assembly> assembliesToInclude = new List<Assembly>();
    
                    //Now, add in all the assemblies your app uses
                    assembliesToInclude.Add(typeof(Plugin.Share.Abstractions.ShareMessage).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Plugin.Share.CrossShare).GetTypeInfo().Assembly);
    
                    assembliesToInclude.Add(typeof(System.Net.Http.HttpClient).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(System.Net.Http.Headers.AuthenticationHeaderValue).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Newtonsoft.Json.JsonConvert).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Newtonsoft.Json.JsonPropertyAttribute).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(SQLite.SQLiteAsyncConnection).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Plugin.Share.ShareImplementation).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Plugin.Share.Abstractions.ShareMessage).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Plugin.Share.Abstractions.ShareMessage).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(System.Collections.ObjectModel.ObservableCollection<>).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(SQLite.PrimaryKeyAttribute).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(SQLite.IgnoreAttribute).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(AdDuplex.AdControl).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(AdDuplex.AdDuplexClient).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(AdDuplex.AdDuplexInitializationStatus).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(AdDuplex.InterstitialAd).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(System.Threading.Tasks.Task).GetTypeInfo().Assembly);
                    
                    assembliesToInclude.Add(typeof(Com.OneSignal.OneSignal).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Com.OneSignal.Abstractions.IOneSignal).GetTypeInfo().Assembly);
    
                    assembliesToInclude.Add(typeof(System.Net.Http.HttpClient).GetTypeInfo().Assembly);
                    assembliesToInclude.Add(typeof(Windows.Foundation.UniversalApiContract).GetTypeInfo().Assembly);
                 
    
                    //Also do this for all your other 3rd party libraries
    
                    Xamarin.Forms.Forms.Init(e, assembliesToInclude);
    So any help please :)

    • Moved by Breeze Liu Monday, August 28, 2017 7:52 AM off topic
    Sunday, August 27, 2017 12:05 PM

All replies

  • Hi Mikara89,

    Welcome to the Developing Universal Windows apps forum! This is the official forum for developing Universal Windows apps issue, your issue is relative to Xamarin.Forms, we don't support it, you can ask it on the corresponding Xamarin forums.

    Best regards,

    Breeze


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, August 28, 2017 7:51 AM