What is the difference between the nuget packages hangfire.aspnetcore and hangfire and hangfire.core?

血红的双手。 提交于 2020-07-08 10:59:28

问题


What is the difference between the nuget packages HangFire.AspNetCore and HangFire and HangFire.core?

It seems I am able to use hangfire with a ASP .NET MVC Core project with only the HangFire 1.6.21 package alone. See below packages used in my project:

What is then the package HangFire.AspNetCore for?

I am working with Visual Studio Code on Ubuntu, and I added the packages using :

dotnet add package Hangfire

dotnet add package Hangfire.AspNetCore

回答1:


It's the usual naming convention for NuGet packages:

  • HangFire is the package name and the main package which includes all dependencies needed. This main package targets .NET framework in this case.
  • HangFire.Core is package that includes the core components, to which all variants of the package will probably be dependent on.
  • HangFire.AspNetCore is extension to support .NET Core


来源:https://stackoverflow.com/questions/53682691/what-is-the-difference-between-the-nuget-packages-hangfire-aspnetcore-and-hangfi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!