System.Reactive/Rx Nuget 上的 .NET 4.0

System.Reactive/Rx .NET 4.0 on Nuget

我正在尝试使用 VS2013 将 System.Reactive.Core 添加到 .NET 4.0 项目并收到以下错误:

Could not install package `System.Reactive.Core 3.0.0`. 
You are trying to install this package into a project that target 
`.NETFramework,Version=v4.0`, but the package does not contain any assembly 
reference or content files that are compatible with that framework.

我在 nuget.org 上也找不到旧的 Rx-Main 包了。

如何在 .NET 4.0 上安装 Rx?

我想我必须手动找到 RxMain 2.x 库并直接从我的解决方案中的 lib 文件夹中引用它们?

Ok 我明白了,Rx-Main 已经下架,因此只能使用以下命令安装它:

Install-Package Rx-Main -Version 2.2.5

致 Rx 团队:您应该重新创建 2.2.5 System.Reactive,它允许我们在升级到 3.0.0 之前以 .NET 4.0 为目标。