0

我想在Xamarin.Forms解决方案中构建我的Android项目,并且以下行不断引发打破构建的异常。Xamarin Forms中的Android项目中的MobileServiceClient错误

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

+0

嗨, 您是如何添加Azure项目的?的NuGet?在这种情况下,请确保您已安装在Android项目中的软件包 – woelliJ

+0

您需要将Azure移动客户端NuGet软件包添加到解决方案中的所有移动应用程序项目 –

+0

是的,我一直假设PCL的NuGet软件包也被继承,但是绝对不是这样。虽然会很好! –

回答

1

DERP

您需要在Azure移动客户端的NuGet包添加到所有 移动应用程序项目中的解决方案 - Ken Tucker