FastReport.Mono and Android
On your FastReport Mono product page, it says the following:
Yet, when I download the demo and reference FastReport.Mono.dll from within in a Mono for Android project, I get the following compilation error:
Could you please confirm whether FastReport.Mono can be used with Xamarin's Mono for Android? The statement that it is supported on any OS that supports Xamarin Mono leads me to believe that Mono for Android should be supported, too.
Thank you!
It can be used with Windows, Linux, Mac OS X and any operating system that supports Xamarin Mono
Yet, when I download the demo and reference FastReport.Mono.dll from within in a Mono for Android project, I get the following compilation error:
Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Drawing.dll'
at Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute()
Could you please confirm whether FastReport.Mono can be used with Xamarin's Mono for Android? The statement that it is supported on any OS that supports Xamarin Mono leads me to believe that Mono for Android should be supported, too.
Thank you!
This discussion has been closed.
Comments
Hello!
The FastReport.Mono.dll build is intended exclusively for desktop and server operating systems (Linux, macOS, Windows) with the full Mono Framework profile, which includes System.Drawing.dll on top of the libgdiplus library.
In the Xamarin.Android mobile profile (Mono for Android), the System.Drawing.dll assembly is intentionally omitted, as Android uses the native graphics subsystem android.graphics.*; therefore, directly linking FastReport.Mono.dll to an Android project is architecturally impossible.