【问题标题】:What is the difference between the nuget packages hangfire.aspnetcore and hangfire and hangfire.core?nuget包hangfire.aspnetcore和hangfire和hangfire.core有什么区别?
【发布时间】:2018-12-08 12:49:51
【问题描述】:

nugetHangFire.AspNetCoreHangFireHangFire.core 有什么区别?

似乎我可以仅使用 HangFire 1.6.21 包将 hangfire 与 ASP .NET MVC Core 项目一起使用。请参阅我的项目中使用的以下软件包:

那么包HangFire.AspNetCore 是干什么用的?

我在 Ubuntu 上使用 Visual Studio Code,并使用以下方法添加了软件包:

dotnet add package Hangfire

dotnet add package Hangfire.AspNetCore

【问题讨论】:

  • 已添加链接,感谢您的提醒。

标签: c# nuget asp.net-core-mvc hangfire


【解决方案1】:

这是 NuGet 包的常用命名约定:

  • HangFire 是包名和主包,其中包括所需的所有依赖项。在这种情况下,这个主包以 .NET 框架为目标。
  • HangFire.Core 是包含核心组件的包,该包的所有变体都可能依赖于这些组件。
  • HangFire.AspNetCore 是支持 .NET Core 的扩展

【讨论】:

  • 谢谢。知道如何在没有 HangFire.AspNetCore 的情况下使用带有 .NET Core 的 hangfire 作业吗?
  • 不可能。为什么不使用 AspNetCore 包?
  • 据我所知,我可以在 Visual Studio Code 上的 ASP Core 项目上使用 hangfire 1.6.21 调度和运行后台作业,而无需 HangFire.AspNetCore Ubuntu。这就是为什么我要问这个包的特点是什么?也许它已经过时了?
  • 它是自动下载的,检查你的包。
  • 那是正确的,谢谢。基于nugetHangfire 包的依赖项包括 Hangfire.AspNetCore (= 1.6.21) 和 Hangfire.Core (= 1.6.21) 和 Hangfire.SqlServer (= 1.6.21)
猜你喜欢
  • 1970-01-01
  • 2019-04-12
  • 1970-01-01
  • 1970-01-01
  • 2017-11-13
  • 2017-12-05
  • 2011-07-05
  • 1970-01-01
  • 2021-06-11
相关资源
最近更新 更多