Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReactiveUI + Portable Class Library?

I'm porting a WPF app over to Windows Store app. I have some view models that I would like to put into a Portable Class Library. That code uses reactiveui framework. I created the library and I use nuget package manager to add reactiveui to the project. I get this:

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.

Is this really an unsupported configuration or am I doing it wrong?

like image 351
Skrymsli Avatar asked Jun 10 '26 06:06

Skrymsli


1 Answers

ReactiveUI-Platforms is specifically only the platform-specific code. You need to just reference ReactiveUI-Core in your PCL and reference ReactiveUI-Platforms in your WPF and Windows Store apps, and everything should work.

like image 177
Ana Betts Avatar answered Jun 11 '26 20:06

Ana Betts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!