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
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid