【发布时间】:2017-02-10 12:12:16
【问题描述】:
Xamarin.forms 和 PCL 的新手,当我收到以下错误时,我正在尝试通过 nuget 将 https://github.com/GuillaumeSalles/redux.NET 添加到 Hello world Xamarin.forms 项目:
Could not install package 'Redux.NET 1.0.1'. 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.
我需要以什么框架为目标 - 我应该尝试将 Xamarin.forms 入门项目更新到该框架吗?是否有我可以查看的包配置文件以了解该库所依赖的 .net 版本?
我在 .nuspec 文件中看到的唯一依赖项是我已经添加的 System.Reactive 3.0.0。
这是我尝试添加 redux 之前的 packages.config
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="System.Reactive" version="3.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="System.Reactive.Core" version="3.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="System.Reactive.Interfaces" version="3.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="System.Reactive.Linq" version="3.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="System.Reactive.PlatformServices" version="3.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="Xamarin.Forms" version="2.3.1.114" targetFramework="portable45-net45+win8+wp8+wpa81" />
</packages>
【问题讨论】:
标签: c# nuget xamarin.forms portable-class-library