Why does AddHangfireServer have ASP.NET dependency?

Tags: #<Tag:0x00007f234c8f3600> #<Tag:0x00007f234c8f3538>

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