解析和 Xamarin

Parse and Xamarin

我正在使用 Xamarin,我想知道是否有办法在共享项目中 运行 解析,这样我就不必在 iOS 项目中复制我的代码,并且我的解决方案中的 Android 项目?

我是不是遗漏了什么,或者我真的必须复制 Parse 代码吗?

我所做的是创建一个 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" 类型,而不是创建 DLL。在引擎盖下,它只是文件链接到您的实际项目,因此它将使用该项目的引用。共享项目不应包含任何 iOS 或 Android 特定代码。