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)