Hello!

Also lets assume some of the code will only be able to compile for WP7
and not for Android you can put pre-processing directives around the
code such as:

#if WP7
    <WP7 code here>
#endif
#if ANDROID
    <Android code here>
#endif

And in the project settings under the Build tab in VS2010 you can set
Conditional compilation symbols to match for each project.

As Jonathan said link your files instead of copying them so you do not
have to maintain code more than one place, this helps a lot.

On Wed, Oct 26, 2011 at 3:30 AM, Jonathan Pryor <[email protected]> wrote:
> On Oct 19, 2011, at 7:22 AM, prathyumanne wrote:
>> How to compile my wp7 written .cs files to monodroid?
>
> Create a new project (Mono for Android Application or Library) and add your 
> WP7 .cs files into the project (presumably as a Link so that when updated in 
> one project, they're updated in all projects), then build the project.
>
>  - Jon
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk
_______________________________________________
Monodroid mailing list
[email protected]

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

Reply via email to