[mono-android] Sharing code between iOS, Android and Windows Phone
Tomasz Cielecki
tomasz at ostebaronen.dk
Mon Nov 7 04:14:59 EST 2011
What I do is to make a solution for each platform, and have a "master"
solution with all the code that can be shared between the apps. This
is mostly business logic as how to receive data from our servers, most
of the domain model and so forth. This master project has its files
linked into the specific solutions for Android, iPhone and Windows
Phone 7.
On Mon, Nov 7, 2011 at 9:48 AM, Emiel Metselaar <edmetselaar at gmail.com> wrote:
>>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
>>
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
--
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk
More information about the Monodroid
mailing list