I have some proprietary code that I am trying to compile in a xamarin project using Xamarin studio for mac. One of the classes uses System.Xml.XmlTextWriter.
I am getting the following error:
Error CS0012: The type `System.Xml.XmlTextWriter' 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'
Firstly I have added the reference to System.Xml in my project. This is a shared library (not a portable one) so the reference is in the droid project, and not the library project itself.
I know there are issues with certain parts of System.Xml in Xamarin (see [1], [2]) but they seem to revolve around XmlDocument. Furthermore, the xamarin documentation specifically has XmlTextWriter in it (assume this documentation is for the xamarin libraries, and not the windows ones they are based on).
This documentation, as well as the error above, mentions that I need version 2.0.0.0, where as the Reference available to me is 2.0.5.0. I am unsure if this matters.
Anyone have any ideas?
u_u