How should i use Azure Mobile Services with PCL or without it now?

前端 未结 4 2060
借酒劲吻你
借酒劲吻你 2021-01-02 03:43

I updated to latest version of Xamarin, where PCL is \"fully supported\". How can i use Azure Mobile Services now?

if i create PCL lib and trying to add it with NuGe

4条回答
  •  天涯浪人
    2021-01-02 04:25

    Here's how I got Mobile Services v1.3.2 working in new Xamarin.Forms PCL project:

    1. Install 'Mobile Services’ into shared project ‘Packages’ folder as well as .iOS & .Droid ‘Packages' folders.
    2. Delete duplicate references in .iOS / .Droid folders: “System.Runtime”, “System.IO”, “System.Threading.Tasks"
    3. Remember to add CurrentPlatform.Init(); to ‘AppDelegate.cs' in .iOS project and to ‘MainActivity.cs' in .Droid project.

    Paul Batum has done a good sample Xamarin PCL app showing syncing between iOS and Android app: https://github.com/paulbatum/fieldengineerlite

提交回复
热议问题