我正在尝试使用新的 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/