That's the linker's job. But you'll have to "fool" the linker that you need the class you're trying to do reflection with so he doesn't chop it off from the final package.
The link I gave you shows a few examples. I myself have created a class where I "tell" the linker that I am using a certain class. Even though the code it's never invoked, because the linker does this verification at compile time, the class is included. Example here: http://pastebin.com/nqBUv2EZ Preserves the Spidder widget as well as SelectedItemPosition property. I know this sucks, but... There are other methods explained in the link I gave you, maybe there is a more suitable option for you. 2012/12/19 Javier Martínez Sáez <jav...@externalia.com> > Bingo!!! It worked.. but it’s too heavy..Any idea to reduce the final > package size?**** > > ** ** > > *Un saludo* > > * * > > *Javier Martínez Sáez* > > *Responsable Soporte Técnico eLegisla* > > ** ** > > [image: Descripción: Logo_nuevo_externalia] <http://www.externalia.com/>** > ** > > www.externalia.com**** > > Tfno.: 945 291 684 | Fax 945 205 228**** > > sopo...@egestiona.es**** > > ** ** > > ** ** > > [image: Descripción: pie_egestiona_elegisla_adr]<http://www.egestiona.es/> > **** > > www.egestiona.es | www.elegisla.es | www.eadr.es**** > > ** ** > > ******************** CLÁUSULA DE CONFIDENCIALIDAD ********************** > > Este mensaje electrónico y todos los ficheros adjuntos que contiene son > confidenciales y destinados exclusivamente para el uso de la o las personas > a las que va dirigido, pudiendo estar sujeta a Secreto Profesional. Si > usted ha recibido este mensaje por error, le agradecemos lo comunique al > emisor. Asimismo, le informamos que la distribución, copia o utilización de > este mensaje, o de cualquier documento adjunto al mismo, cualquiera que > fuera su finalidad, están prohibidas por la ley.**** > > *P* *Antes de imprimir este e-mail piense bien si es necesario hacerlo. > El medioambiente es cosa de todos***** > > ** ** > > ** ** > > *De:* monodroid-boun...@lists.ximian.com [mailto: > monodroid-boun...@lists.ximian.com] *En nombre de *Goncalo Oliveira > *Enviado el:* miércoles, 19 de diciembre de 2012 12:05 > *Para:* Discussions related to Mono for Android > *Asunto:* Re: [mono-android] property getValue error (reflecting)**** > > ** ** > > You're getting the link shrinkage symptom... Release builds usually have > Linking set to 'Sdk assemblies'. This strips 'unused' stuff to reduce the > final package size. This can lead to reflection triggering exceptions for > not finding a type or method or property. Try building a release with > Linking set to 'None'. If the error disappears, you'll get your answer.*** > * > > ** ** > > Check this out: http://docs.xamarin.com/android/advanced_topics/linking*** > * > > ** ** > > ** ** > > On 19 December 2012 10:54, javitxin <jav...@externalia.com> wrote:**** > > has shared runtime anything to do with this? > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/property-getValue-error-reflecting-tp5712653p5712654.html > **** > > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > 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 > > -- Gonçalo Oliveira
<<image002.gif>>
<<image001.png>>
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid