[mono-android] .NET 4.0 + library's

Jonathan Pryor jpryor at novell.com
Fri Mar 25 12:19:53 EDT 2011


On Mar 25, 2011, at 12:00 PM, Steven Taylor wrote:
> How possible is it to have core application code (MINUS UI) that runs on both Touch + Droid?

Very possible, as they mostly expose the same assemblies and types and assembly versions. With few exceptions, it should be possible to compile an assembly under MonoTouch and use it as-is under Mono for Android (and vice versa).

Note: this requires MonoTouch 4.0 (as we rebased the core framework assemblies so that MonoTouch and Mono for Android would match). Prior versions of MonoTouch may not work as some types were moved between assemblies in the process, e.g. Action ... Action`8 is now in mscorlib.dll, wherease in MonoTouch 3.x most were in System.Core.dll.

An example of a known compatibility exception is System.Reflection.Emit -- this is supported under Mono for Android but has no chance of working on MonoTouch until iOS supports JITs.

 - Jon



More information about the Monodroid mailing list