Is there Rx.NET for .NET Core?

mark picture mark · Jul 26, 2016 · Viewed 12.1k times · Source

Found https://github.com/Reactive-Extensions/Rx.NET/issues/148, but I could not figure out the bottom line - where is Rx.NET for .NET Core and how to get it?

I am using Enterprise Visual Studio 2015 Update 3 with .NET Core installed.

Answer

Gerardo Grignoli picture Gerardo Grignoli · Jul 26, 2016

Yes, but Rx.NET namespaces and packages have been renamed to System.Reactive as described here.

The NuGet packages have changed their package naming in the move from v2.x.x to v3.0.0

  • Rx-Main is now System.Reactive
  • Rx-Core is now System.Reactive.Core
  • Rx-Interfaces is now System.Reactive.Interfaces
  • Rx-Linq is now System.Reactive.Linq
  • Rx-PlatformServices is now System.Reactive.PlatformServices
  • Rx-Testing is now Microsoft.Reactive.Testing

You can add the NuGet package by editing your project.json and adding a reference to System.Reactive

  (...)
  "dependencies": {
    "Microsoft.NETCore.App": {
      "type": "platform",
      "version": "1.0.0"
    },
    "System.Reactive": "3.0.0"    <------------- 
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": "dnxcore50"
    }
  }