ReactiveUI +可移植类库?

时间:2014-02-25 02:07:32

标签: wpf nuget reactiveui

我正在将WPF应用移植到Windows应用商店应用。我有一些视图模型,我想放入一个可移植类库。该代码使用了activui框架。我创建了库,我使用nuget包管理器为项目添加了activeui。我明白了:

Could not install package 'reactiveui-platforms 5.4.0'. You are trying to install this package into a project that targets 'portable-net45+wp80+win', 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.

这真的是一个不受支持的配置还是我做错了?

1 个答案:

答案 0 :(得分:3)

ReactiveUI-Platforms特别是特定于平台的代码。您需要在PCL中引用ReactiveUI-Core并在WPF和Windows应用商店应用中引用ReactiveUI-Platforms,一切都应该有效。

相关问题