Search code examples
c#nugetasp.net-core-mvchangfire

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


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:

enter image description here

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

Solution

  • 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