【问题标题】:Is there Rx.NET for .NET Core?.NET Core 有 Rx.NET 吗?
【发布时间】:2016-07-26 00:31:02
【问题描述】:

找到https://github.com/Reactive-Extensions/Rx.NET/issues/148,但我无法弄清楚底线 - Rx.NET for .NET Core 在哪里以及如何获得它?

我正在使用安装了 .NET Core 的 Enterprise Visual Studio 2015 Update 3。

【问题讨论】:

  • 我做到了。 R# 建议在 NuGet 中搜索包含类 Observable 的包。我做了,它发现了与 .NET Core 不兼容的 Rx-Linq 2.2.5。我现在将检查 System.Reactive。
  • Reactive 社区的情况已经够困难了(他们有两个 Github 组织,一个最近重新组织的 .NET 社区,最近重新命名了他们所有的项目)......我认为有一些混乱。谢谢@mark

标签: c# system.reactive .net-core


【解决方案1】:

是的,但 Rx.NET 命名空间和包已重命名为 System.Reactive 为 described here

在从 v2.x.x 迁移到 v3.0.0 的过程中,NuGet 包已更改其包命名

  • Rx-Main 现在是 System.Reactive
  • Rx-Core 现在是 System.Reactive.Core
  • Rx-Interfaces 现在是 System.Reactive.Interfaces
  • Rx-Linq 现在是 System.Reactive.Linq
  • Rx-PlatformServices 现在是 System.Reactive.PlatformServices
  • Rx-Testing 现在是 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"
    }
  }

【讨论】:

  • 你是对的,当然。不知何故,我确信在 NuGet 中搜索带有 Observable 类的包会立即给我正确的包。我应该搜索 Rx.Net github 页面,而不是依赖 R#。谢谢。
  • 我同意 NuGet 搜索需要重做。您也可以尝试反向包搜索。它允许按类名/命名空间packagesearch.azurewebsites.net 进行搜索
猜你喜欢
  • 2017-04-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-07-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多