Android application build breaks due to linker issue (ILLink : error IL1012)

Product and version:
Aspose.Words, Version 21.8.0
Use Case:
C# .NET MAUI Cross Platform Mobile application ( Android, iOS, WinUI)
Issue:
Android/iOS application build breaks due to linker issue (ILLink : error IL1012)

Description:
In the process of migrating xamarin.forms android application to cross-platform .NET MAUI application my team reach a roadblock with Aspose.Words V.21.8.0. In its original usage in Xamarin.Forms there was no issue at all in our build process locally or on the cloud. Now with the migration of the application to .NET MAUI the Aspose.Words library is breaking the application build process due to the following error:

"ILLink : error IL1012: IL Trimmer has encountered an unexpected error. Please report the issue at Issues · dotnet/linker · GitHub [/Users/runner/work/1/s/EasyOneMobile/EasyOneMobile.csproj::TargetFramework=net7.0-ios]

  • Fatal error in IL Linker*
  • Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ‘start’)*
  • at Mono.Linker.MethodReferenceExtensions.GetDisplayName(MethodReference method)...*"
    

From my tests it seems that the Aspose.Words version 21.8.0 is the only library causes the build to break, furthermore, when I set (property in .csproj file) to False, the application does build with no issue; but we need it to be TRUE as we need the trimming to be executed.

In using the latest version of Aspose.Words, version 23.10.0 the application (Android/iOs) both build with no issue and everything works as expected; except for the “Evaluation Only. Created with Aspose.Words…” watermark message that now shows on the documents that are generated.

My question is as follows,
are there any know issues with using Aspose.Words version 21.8.0 in .NET MAUI cross platform applications?? If so, is there a fix or can we be provided with free upgrade to a version that works with .NET MAUI?

Expected Result:
Aspose.Words Version 21.8.0 builds and works with Cross-Platform framework .NET MAUI application.

Actual Result:
Aspose.Words version 21.8.0 breaks android/iOs cross-platform .NET MAUI application.
android_Build_ERROR.pdf (82.6 KB)

@s.torres

No, there are no known issues with Aspose.Words in .NET MAUI. However, 21.8 version is quite old version and it provides only .NET Standard 2.0 version of dll, as I can see you are using .NET7 in your application. The latest version also provides .NET6 dll, which is selected for .NET7 build. Of course .NET7 implements .NET Standard 2.0, and there should not be any issues, but maybe this is the reason of the problem on your side.

We started to provide .NET6 dll starting from 22.5.0 version. Could you please try using this version on your side? Also, you can check your license and determine it’s expiration date. Open the license file in Notepad (but take care not to modify and save the license file or it will no longer work) and see the SubscriptionExpiry field.

<SubscriptionExpiry>20220218</SubscriptionExpiry>

It means that you can free upgrade to version of Aspose.Words published before 02/18/2022.