Xamarin Forms 中 Android 项目的 MobileServiceClient 错误

MobileServiceClient error with Android project in Xamarin Forms

我正在尝试在 Xamarin.Forms 解决方案中构建我的 Android 项目,但以下行不断引发异常,导致构建中断。

client = new MobileServiceClient("backend_url");

此错误显示如下:

System.InvalidOperationException: A Microsoft Azure Mobile Services assembly for the current platform was not found. Ensure that the current project references both Microsoft.WindowsAzure.Mobile and the following platform-specific assembly: Microsoft.WindowsAzure.Mobile.Ext.

我看到另一个 thread 说要手动添加对 Android 项目的引用,还有一个 Xamarin 开发人员说问题在某个更新后得到解决(可能不是那么多)。任何人都知道在哪里解决这个问题。 我已经进入 Android 项目 > 参考 > 浏览> 但找不到 Microsoft.WindowsAzure.Ext

德普

You need to add the Azure Mobile Client NuGet package to all the mobile app projects in the solution - Ken Tucker