迁移 Microsoft.WindowsAzure.Mobile.SQLStore 到 Microsoft.Azure.Mobile.Client.SQLiteStore
Migrate Microsoft.WindowsAzure.Mobile.SQLStore to Microsoft.Azure.Mobile.Client.SQLiteStore
我正在尝试更新我的一个 Xamarin.Forms 应用程序 ,它使用 已弃用的 Microsoft.WindowsAzure.Mobile.SQLStore 软件包新的 Microsoft.Azure.Mobile.Client.SQLiteStore 包,但是当我尝试在我的核心 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 包似乎没有。
如有任何帮助,我们将不胜感激。
您可以尝试打开 PCL 的 .csproj 并将 Profile78
条目替换为 NuGet 包支持的配置文件(可能是 Profile259
,其中几乎包括除 windows phone银光)
如果您的项目在更改配置文件后无法编译(例如因为缺少类型引用),请尝试选择包支持的不同配置文件。
如果您有多个 PCL,您可能需要更改所有这些的目标配置文件。
事实证明,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
尝试将 .Net 配置文件更改为 配置文件 7,然后更新。
转到 跨平台项目选项->构建->常规->.Net 便携
我正在尝试更新我的一个 Xamarin.Forms 应用程序 ,它使用 已弃用的 Microsoft.WindowsAzure.Mobile.SQLStore 软件包新的 Microsoft.Azure.Mobile.Client.SQLiteStore 包,但是当我尝试在我的核心 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 包似乎没有。
如有任何帮助,我们将不胜感激。
您可以尝试打开 PCL 的 .csproj 并将 Profile78
条目替换为 NuGet 包支持的配置文件(可能是 Profile259
,其中几乎包括除 windows phone银光)
如果您的项目在更改配置文件后无法编译(例如因为缺少类型引用),请尝试选择包支持的不同配置文件。
如果您有多个 PCL,您可能需要更改所有这些的目标配置文件。
事实证明,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
尝试将 .Net 配置文件更改为 配置文件 7,然后更新。 转到 跨平台项目选项->构建->常规->.Net 便携