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

将Microsoft.WindowsAzure.Mobile.SQLStore迁移到Microsoft.Azure.Mobile.Client.SQLiteStore,azure,xamarin,xamarin.forms,azure-mobile-services,Azure,Xamarin,Xamarin.forms,Azure Mobile Services,我正在尝试用新的Microsoft.Azure.Mobile.Client.SQLiteStore包更新我的Xamarin.Forms应用程序之一,该应用程序使用了已弃用的Microsoft.WindowsAzure.Mobile.SQLStore包,但在我的核心pcl项目中尝试安装该包时出现以下错误: Could not install package 'Microsoft.Azure.Mobile.Client.SQLiteStore 4.0.0'. You are trying to i

我正在尝试用新的Microsoft.Azure.Mobile.Client.SQLiteStore包更新我的Xamarin.Forms应用程序之一,该应用程序使用了已弃用的Microsoft.WindowsAzure.Mobile.SQLStore包,但在我的核心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.
我试着跟随,但他们似乎忘记添加代码示例,所以我无法确切地了解他们在做什么。已弃用的Microsoft.WindowsAzure.Mobile.SQLStore包安装在PCL库中,但新的Microsoft.Azure.Mobile.Client.SQLiteStore包似乎没有安装


任何帮助都将不胜感激。

您可以尝试打开PCL的.csproj,并将
Profile78
条目替换为NuGet软件包支持的配置文件(可能
Profile259
几乎包括除windows phone silverlight之外的所有内容)

如果您的项目在更改配置文件后无法编译(因为缺少类型引用,例如),请尝试选择软件包支持的其他配置文件


如果您有多个PCL,您可能需要更改所有PCL的目标配置文件。

结果表明,Microsoft.Azure.Mobile.Client.SQLiteStore 4.0.0不再支持PCL,但它们已迁移到.NET标准1.4。PCL支持在3.1.0版停止

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


查看本期了解更多详细信息:

尝试将.Net配置文件更改为配置文件7,然后更新。
转到跨平台项目选项->构建->常规->.Net Portable

检查Microsoft.Azure.Mobile.Client.SqLiteStore nuget包上的依赖项,并确保您的项目目标没有违反任何依赖项(属性>库>目标>目标)。您可能必须尝试安装Microsoft.Azure.Mobile.Client.SqLiteStore v3.1.0而不是4.0.0。我认为这与软件包依赖项无关,否则错误消息会这样说。我担心这个软件包与pcl不再兼容,这将使它对我毫无用处。我希望有人对这些软件包有一些经验,或者微软的人能够澄清这一点。我将尝试安装v3.1.0。如果这不起作用,我将尝试下载该软件包,解压缩它并查看它的定义,以了解它到底支持什么。@chriszumberge关于安装v3.1.0您是对的。软件包依赖项部分告诉您它与哪个PCL配置文件兼容,如果有的话,以及您在哪里找到该依赖项部分?我正在使用Xamarin Studio/Visual Studio for mac。我在nuget网站上看到了dependencies部分,但它没有提到PCL配置文件。