But how am I supposed to do that? Just like create 2 type of Library projects? 1 mono for android and 1 monotouch?
2011/9/23 Jonathan Pryor <j...@xamarin.com> > On Sep 23, 2011, at 2:40 AM, Mittchel Van Vliet wrote: > > Do you guys know if it is possible to make Library's (.dll) files with > business logic like accessing the database and share this with a MonoTouch > project? > > If you're careful, it is possible to share the same assembly between > MonoTouch and Mono for Android. You will need to take care to only reference > assemblies common to both platforms (e.g. don't reference monotouch.dll, > OpenTK.dll, Mono.Android.dll), and not use features that MonoTouch doesn't > have (no System.Reflection.Emit), but otherwise it's possible to share the > same assembly between MonoTouch and Mono for Android. > > The one problem is that there is currently no Project you can create that > can be used by both MonoTouch and Mono for Android. What you would instead > need to do is create a e.g. MonoTouch Library project, and then reference > the output assembly from your Mono for Android Application project. > > Here is an example: http://www.jprl.com/tmp/ScratchMonoMobile.zip > > Thanks, > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid