Just an idea, and I don't know how the mono-linker works on this, but
couldn't you just make a dummy class that had the member you want
referenced in it so the linker picks it up? Just a thought if it becomes
too hard.

On Sun, Jul 1, 2012 at 3:49 PM, Jonathan Pryor <j...@xamarin.com> wrote:

> On Jun 27, 2012, at 12:47 PM, Pattt wrote:
> > I’m linking with « sdk and user assemblies », exactly as requested here:
>
> That link doesn't work for me, so I don't know who told you to link both
> SDK and User assemblies, or why...
>
> On Jun 27, 2012, at 1:17 PM, Patrick Ribault wrote:
> > Linking with LinkSdkOnly solves the problem!!
> >
> > It's fine with me, but this means that somewhere you're removing
> mandatory classes with LinkEverythink option.
>
> That's entirely expected here. Linking only knows about static
> information, and doesn't understand/follow Reflection, so if the only use
> of a member is via Reflection, then the member WILL NOT be preserved when
> everything is linked. This is called out in the linker example:
>
>
> http://docs.xamarin.com/android/advanced_topics/linking#Linker_Behavior
>
>         The above example will work with the Don't Link and Link SDK
> Assemblies options, and will fail with the Link All Assemblies behavior,
> generating the following error...
>
> If you're using Reflection, you should either stick with the Link SDK
> Assemblies default, or use one of the other mechanisms listed at the
> linking page to preserve the members that need to be preserved.
>
>  - Jon
>
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.

-Wozniak
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to