Anthony Tietjen
Anthony Tietjen

Reputation: 1064

Parse and Xamarin

I am using Xamarin and I was wondering if there is a way to run Parse in a shared project, so that I don't have to duplicate my code in the iOS project and the Android project in my solution?

Am I missing something, or do I really have to duplicate the Parse code?

Upvotes: 1

Views: 482

Answers (1)

SharpMobileCode
SharpMobileCode

Reputation: 938

What I did was create a Shared Project type to host my Parse specific Code. Then in my Xamarin.Android app, I reference the Parse.Android.dll. In my Xamarin.iOS code, I referenced the Parse.iOS.dll. Remember, that the "Shared Project" type does not create a DLL. Underneath the hood it's just file linking into your actual project, so it will use the references of that project. The Shared Project should not contain any iOS or Android specific code.

Upvotes: 2

Related Questions