[mono-android] Sharing code between iOS, Android and Windows Phone
Emiel Metselaar
edmetselaar at gmail.com
Mon Nov 7 03:48:46 EST 2011
>How does one go about sharing code?
You have given the answer yourself, you share the code (not the assembly).
So create a project file per platform, which allows you to place the
platform specific references and if necessary add platform specific
compiler constants + ifdefs.
On Mon, Nov 7, 2011 at 8:16 AM, Steven Pack
<steven_john_pack at yahoo.com.au>wrote:
> Hi All,
>
> I'm using Xamarin, specifically because I'd like to share as much code as
> possible between the platforms. I've noticed I can only reference library
> projects that target "Mono for Android x.x". I'd hoped to be able to simply
> create a Mono class library and only use the classes supported by MonoDroid
> or MonoTouch and reference said project from either platform.
>
> What am I missing here? How does one go about sharing code?
>
> Steve
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111107/fe5205d7/attachment.html
More information about the Monodroid
mailing list