App Center RELEASE builds fail: ILT0005 but able to produce RELEASE builds from Visual Studio 2019

6 hours ago

I encountered this issue when trying to produce a RELEASE build, and theUse64BitCompilerflag now allows us to create RELEASE builds on our Visual Studio 2019 machines.

However, if we try to produce a RELEASE build using App Center, we get this error again and the build fails.

Error on UWP release package creation: ILT0005 nutc_driver.exe exit code 4

Any ideas why that is?

(Xamarin.Forms project using the three presenters/renderers for XLS, PPTX, and DOCX files)


3 Replies 1 reply marked as answer

SK Shamini Kiruba Sobers Syncfusion Team September 15, 2020 10:56 AM UTC

Hi Alejandro, 

Greetings from Syncfusion. 

We suspect that the reported error occurred on referencing the Syncfusion’s full SDK UWP library. Kindly try adding the specific control assemblies as references. 

Please make sure to check the following: 
  • 64bit OS is installed in your machine to utilize “Use64BitCompiler”
  • Microsoft.NETCore.UniversalWindowsPlatforms referenced in your project must be v6.0.1 or higher
  • UWP project targets at Windows 10 Fall Creators Update (10.0; Build 16299).

If you are still facing the issue, kindly share us the issue reproducing sample, which would be helpful to investigate the query further. 

Regards, 
Shamini 



IN inerdtian September 16, 2020 03:03 PM UTC

I have several questions:

It's a Xamarin.Forms project targeting UWP, Android and iOS.

1) Do we have to add the appropiate assemblies to each project individually, or are they just needed in the "Core" (PCL) project AND the UWP project?
2) I can't figure out which values to use in the "Now, add all the assemblies your apps uses" section below. We are using:
  • Syncfusion.DocIO.DocIORenderer
  • Syncfusion.Pdf
  • Syncfusion.Presentation
  • Syncfusion.PresentationToPdfConverter
  • Syncfusion.XlsIO
  • Syncfusion.XlsIORenderer
I tried adding those but they are namespaces, not types, so how do I know the types we are supposed to list there?
I looked up all types used in the app from the namespaces and added all of them through assembliesToInclude in the UWP project. However, when I tried to build the app (in Azure DevOps pipelines or App Center), it says that it's missing Syncfusion assemblies. This wasn't happening when I had the NuGet packages. I added them as references in the project (from the Syncfusion installation).

// you should add `using System.Reflection;`
    List<Assembly> assembliesToInclude = new List<Assembly>();

    //Now, add all the assemblies your app uses
    assembliesToInclude.Add(typeof(Syncfusion.SfDataGrid.XForms.UWP.SfDataGridRenderer).GetTypeInfo().Assembly);
    assembliesToInclude.Add(typeof(Syncfusion.SfNumericTextBox.XForms.UWP.SfNumericTextBoxRenderer).GetTypeInfo().Assembly);
	assembliesToInclude.Add(typeof(Syncfusion.XForms.UWP.ComboBox.SfComboBoxRenderer).GetTypeInfo().Assembly);

    // replaces Xamarin.Forms.Forms.Init(e);        
    Xamarin.Forms.Forms.Init(e, assembliesToInclude);


SK Shamini Kiruba Sobers Syncfusion Team September 18, 2020 04:55 PM UTC

Hi Alejandro, 

We need to add the assemblies only to the main project and there is no need to add them to each project individually. Kindly look into the following UG links to know about the assemblies and NuGet packages required by each platform for Excel operations. You can check it out for Xamarin platform. 

The following UG helps you to start up with simple Excel file creation using XlsIO in Xamarin platform. 

The following KBs may also help. 

The following KBs may help you to work in Azure platform. 

But sorry, we couldn’t get the exact issue that you are facing at your end. Kindly share us the issue reproducing sample which would be helpful for us to investigate further on your query. 

Kindly let us know if the shared links help. 

Regards,
Shamini 


Marked as answer
Loader.
Up arrow icon