[mono-android] Issue with XmlSerializer
Patrick Ribault
patrick.ribault at gmail.com
Wed Jun 27 17:17:06 UTC 2012
Hi,
Linking with LinkSdkOnly solves the problem!!
It's fine with me, but this means that somewhere you're removing mandatory
classes with LinkEverythink option.
Best,
Patrick.
-----Message d'origine-----
De : monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] De la part de Jonathan Pryor
Envoyé : mercredi 27 juin 2012 15:34
À : Discussions related to Mono for Android
Objet : Re: [mono-android] Issue with XmlSerializer
On Jun 27, 2012, at 6:25 AM, Pattt wrote:
> I'm using XmlSerializer to serialise my objects thru a stream.
>
> XmlSerializer xs = new XmlSerializer(this.GetType());
>
> This works perfectly in DEBUG mode, but in RELEASE mode, It throws a
reflexion exception.
Do you have LinkSdkOnly set? Or Link everything?
http://docs.xamarin.com/android/advanced_topics/linking
Linking everything may remove some of your members. It's also possible that
there's a linker bug and we're removing XML serialization code when we
shouldn't be.
Do you have a full stack trace for when it throws the exception?
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
More information about the Monodroid
mailing list