Xamarin:无法安装包 Parse 1.7.0
Xamarin : Could not install package Parse 1.7.0
我目前正在使用 Xamarin 开发跨平台应用程序,我正在尝试使用 NuGet 包 Parse 1.7.0,但是当我尝试在 Visual Studio 2015 年通过 NuGet 安装该包时,我收到此错误:
Could not install package 'Parse 1.7.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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.
是不是理解为Parse官方包不兼容Xamarin?如果是这样,有没有办法让它兼容?
提前致谢!
如果您查看此包的 nupkg
:
https://www.nuget.org/packages/parse
您会发现一个 lib
文件夹,其中包含以下可用目标。因此,您正在尝试以 Profile259 为目标,但在 Parse NuGet 包中没有为此定义。这就是它失败的原因。您必须针对这些目标之一进行安装。
因此,如果您将它单独安装到 MonoAndroid
或 Xamarin.iOS10
,它可以正常安装(Xamarin.Android 和 Xamarin.iOS 项目恭敬)。
情况相同,只需从您的目标中删除 Silverlight 平台,它应该可以工作
我目前正在使用 Xamarin 开发跨平台应用程序,我正在尝试使用 NuGet 包 Parse 1.7.0,但是当我尝试在 Visual Studio 2015 年通过 NuGet 安装该包时,我收到此错误:
Could not install package 'Parse 1.7.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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.
是不是理解为Parse官方包不兼容Xamarin?如果是这样,有没有办法让它兼容?
提前致谢!
如果您查看此包的 nupkg
:
https://www.nuget.org/packages/parse
您会发现一个 lib
文件夹,其中包含以下可用目标。因此,您正在尝试以 Profile259 为目标,但在 Parse NuGet 包中没有为此定义。这就是它失败的原因。您必须针对这些目标之一进行安装。
因此,如果您将它单独安装到 MonoAndroid
或 Xamarin.iOS10
,它可以正常安装(Xamarin.Android 和 Xamarin.iOS 项目恭敬)。
情况相同,只需从您的目标中删除 Silverlight 平台,它应该可以工作