I'm trying use Spire.Doc libraries in my Xamarin.Android project. I using Free Spire.Doc for .NET Version:5.1. I have a trouble when I build this code:
- Code: Select all
Spire.Doc.Document document = new Spire.Doc.Document();
document.LoadFromFile( "test.docx" );
//Convert the file to PDF
document.SaveToFile( "test.pdf", FileFormat.PDF );
Error message (for first line):
Test.cs(171,15): error CS0012: The type `System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
I already added reference to System.Xml, but Xamarin using Mono and version of System.Xml may be different.
I have latest Xamarin.Android version with Mono 3.4.0.
Please, help me to compile Spire.Doc.