Compliation error When linking to iTextSharp Dll in mono for android

I get the following error referring to iTextSharp dll

C: \ Program Files \ MSBuild \ Novell \ Novell.MonoDroid.Common.targets (2,2): Error: exception while loading assemblies: System.IO.FileNotFoundException: could not load assembly 'System.Drawing, Version = 2.0.0.0 , Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a. Perhaps this does not exist in Mono for the Android profile?

Filename: 'System.Drawing.dll'

in Monodroid.Tuner.MonoDroidResolver.Resolve (AssemblyNameReference link, ReaderParameters parameters)

in Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences (List`1 of assembly, assembly AssemblyDefinition)

on Xamarin.Android.Tasks.ResolveAssemblies.Execute () (Dashmate)

I also tried to add System.Drawing.dll, but it still did not resolve the error.

Guess that System.Drawing inside Mono.Android.dll contradicts System.Drawing.dll referenced by iTextSharp

+5
source share
2 answers

I received this response from the Xamarin development team

You cannot use System.Drawing.dll, which is only available in the full version of .NET. profile. Mono for Android only supports its mobile profile, which is almost the same as Silverlight

So, I think that we could not use a third-party DLL that has the "System.Drawing" class : (

+2
source

, () . , , . ( ) .

iTextSharp, ( 2.0.0.0 - , Mono Android 2.1.x).

, (iTextSharp ) , Mono Android. , M4A, ( , ).

, iTextSharp, System.Drawing.dll.

System.Drawing.dll, .

( , ...).

, System.Drawing.dll, Windows ( Mono), Mono Android, GDI + ( libgdiplus Mono), Android.

, System.Drawing Mono.Android.dll System.Drawing.dll, iTextSharp

, Mono Android System.Drawing.dll. (, Rectangle[F], Point[F] Size[F]) ( ), System.Drawing.*, ( ) .NET.

+2

All Articles