Why does AddHangfireServer have ASP.NET dependency?

Why are AddHangfireServer and AddHangfire in ASP.NET Core package?

Because of that if we are using worker service as processing server it has to take dependency on ASP.NET which shouldn’t be needed.

As explained here https://github.com/HangfireIO/Hangfire/issues/1790 you should use Hangfire.NetCore package