Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 3154 [details]
Console Test Project to show the problem
I have included a sample project to show this bug, it runs fine on .NET and Mono runtimes on windows machine but on MonoTouch and Mono on Mac OS X, the xml is not properly deserialized. three items are expected but only one item is contained in the resulting object.
Lluis, could you take a quick look at this one?
It is a bug in the code that handles the ordering of elements. As a workaround, remove all the initialization of the Order property in the XmlElement attributes. For example, instead of:
[System.Xml.Serialization.XmlElementAttribute("Directory", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
You have to remove them all.
I'm working on a fix.
The bug has been fixed in master (d3fdb925ecab42de1caae607180e9ad928a1a907) and 2.10 branch (08021a9a73fd865a523f76a2c1b003072aaeb56f).
Thank you Lluis!
We are bringing the fix to the both iOS and Android.
Thanks for the quick fix guys!