[英]MobileServiceClient error with Android project in Xamarin Forms
I'm trying to build my Android project in a Xamarin.Forms solution and the following line keeps raising an exception that breaks the build. 我试图在Xamarin.Forms解决方案中构建我的Android项目,并且以下行不断引发异常,该异常会破坏构建。
client = new MobileServiceClient("backend_url");
This error is shown as such: 此错误显示如下:
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.
I saw another thread saying to manually add the reference to the Android project but also a Xamarin dev said the problem was fixed after a certain update (maybe not so much). 我看到另一个线程说要手动添加对Android项目的引用,但还有一个Xamarin开发人员说该问题在经过一定的更新后得到了解决(也许没有那么多)。 Anyone have an idea where to fix this. 任何人都有解决此问题的想法。 I already went into the Android project> References > Browse> but couldn't find Microsoft.WindowsAzure.Ext 我已经进入Android项目>参考>浏览>,但是找不到Microsoft.WindowsAzure.Ext
Derp 德普
You need to add the Azure Mobile Client NuGet package to all the mobile app projects in the solution - Ken Tucker 您需要将Azure Mobile Client NuGet程序包添加到解决方案中的所有移动应用程序项目中-Ken Tucker
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.