We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.words UWP build failes

We currently have an ongoing investigation, if we shall buy aspose.words component (So we use the NuGet trial version).
The plan is to use the component to convert a docx -file to a pdf-file on Windows (UWP and WPF), Android and IOS. We use the .Net environment (.NetStandard 2.0).
During the UWP-Release build we stumbled into an error: Error : MCG0037: MCG0037:InvalidCSharpIdentifierName Struct ' +' in assembly 'Assembly(Name=Aspose.Words, Version=19.8.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)' has a field with name '' that is invalid. This could be because the name is obfuscated or the field is auto-implemented by the compiler. Please make sure the field name follows C# identifier conventions.

It seems to us, that there is an error with the obfuscation process.
We thank you already now for your help,
best regards

@alexOmicron

Could you please share the steps that you are using to reproduce this issue at our end? We will investigate the issue on our side and provide you more information.

Hello Tahir,
yes for sure.

So the NuGet packages is:

  • Aspose.Words

The inlcuded libs for conversion:

  • Aspose.Words

Code to convert:

Document doc = new Document(wordFileName);
        doc.Save(pdfFilename);

The conversion is fine with Android and UWP-Debug, but building UWP-Release fails.
Best regards,
Alex

@alexOmicron

We have logged this problem in our issue tracking system as WORDSNET-19102. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.