I'm kind of lost here. I've found exactly what's failing and where. I have
some code that's basically trying to do this:

Type targetType = Target.GetType(); // type is Android.Widget.Spinner
PropertyInfo getterProperty = targetType.GetProperty( getterPath );

In release getterProperty is returning null. Seems like the linker is
excluding the property, or at least, that is my understanding.
As you stated, I have no code, so "Preserve" is not available. Also this is
dynamic and target type could be an EditText or something else. How exactly
can I implement the falseflag method here?

Cheers



On 26 July 2012 03:55, Jonathan Pryor <j...@xamarin.com> wrote:

> On Jul 24, 2012, at 5:45 AM, Goncalo Oliveira <gonc...@minkan.net> wrote:
> > Let me see if I get this straight. I do have an additional project that
> is referenced by the application. It's basically the data model classes. I
> need to add the "[Android.Runtime.Preserve(AllMembers=true)]" attribute to
> the classes in this assembly in order to avoid the linker to "eat up" its
> references? Either that or the weird falseflag method?
>
> Generally you should start with "Link SDK Assemblies". Using the "Link All
> Assemblies" option is for the insane.
>
> If Link SDK Assemblies fails, it's generally because the linker isn't
> smart enough to preserve SDK members that you're using. Using [Preserve]
> won't help (no source!), so you'd want to use falsflag or linkskip.
>
>  - Jon
>
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Gonçalo Oliveira
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to