找到 https://github.com/Reactive-Extensions/Rx.NET/issues/148 ,但我无法弄清楚底线 - .NET Core 的 Rx.NET 在哪里以及如何获得它?
我正在使用安装了 .NET Core 的 Enterprise Visual Studio 2015 Update 3。
最佳答案
是的,但是 Rx.NET 命名空间和包已经重命名为 System.Reactive 为 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
您可以通过编辑 project.json
并添加对 System.Reactive
的引用来添加 NuGet 包
(...)
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
},
"System.Reactive": "3.0.0" <-------------
},
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
关于c# - .NET Core 有 Rx.NET 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38579373/