azure - 将 Microsoft.WindowsAzure.Mobile.SQLStore 迁移到 Microsoft.Azure.Mobile.Client.SQLiteStore

标签 azure xamarin xamarin.forms azure-mobile-services

我正在尝试使用新的 Microsoft.Azure 更新使用已弃用的 Microsoft.WindowsAzure.Mobile.SQLStore 包的 Xamarin.Forms 应用 之一.Mobile.Client.SQLiteStore 包,但当我尝试在 Core pcl 项目中安装该包时出现以下错误:

Could not install package 'Microsoft.Azure.Mobile.Client.SQLiteStore 4.0.0'. 
You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. 
For more information, contact the package author.

我试图关注this documentation但他们似乎忘记添加代码示例,所以我无法弄清楚他们到底在做什么。已弃用的 Microsoft.WindowsAzure.Mobile.SQLStore 包安装在 PCL 库中,但新的 Microsoft.Azure.Mobile.Client.SQLiteStore 包并未安装,或者看起来是这样。

如有任何帮助,我们将不胜感激。

最佳答案

事实证明,Microsoft.Azure.Mobile.Client.SQLiteStore 4.0.0 不再支持 PCL,但已迁移到 .NET Standard 1.4。 PCL 支持在版本 3.1.0 停止

因此,如果您使用 PCL,请安装 v3.1.0。但在安装 v3.1.0 之前,请确保先手动删除已弃用的 Microsoft.WindowsAzure.Mobile.SQLStore。

查看此问题以了解更多详细信息:https://github.com/Azure/azure-mobile-apps-net-client/issues/337

关于azure - 将 Microsoft.WindowsAzure.Mobile.SQLStore 迁移到 Microsoft.Azure.Mobile.Client.SQLiteStore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44528278/

相关文章:

azure - 相互还是单独的 Kubernetes 集群?

azure - 关于在 Azure 应用服务上托管的 D :\local\Temp in .Net 6 Web API 上可用空间不足的异常(即使有大量空间)

azure - 用于 EAI 的 Biztalk 与用于 EAI 场景的 ESB

c# - C# 中的 Azure SQL DB 连接问题

ios - Xamarin iOS : Cannot render iOS Storyboard in Visual Studio 2013

c# - 存档的 APK 文件大小非常巨大 - Xamarin.Android

c# - 更新后 Xamarin Forms 部署失败

xamarin - Xamarin.Forms.Theme.Base Nuget 包在哪里

c# - 任务不包含内容的定义

xaml - 所有标签的自定义字体 Xamarin Forms