.NETCore 2.0 Console. app.UseHangfireDashboard is not available

I created a new .net core 2.0 console project. I installed nuget
HangFire.Core 1.6.19
Microsoft.Owin 4.0
Microsoft.Owin.Host.HttListener 4.0

using Hangfire;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(Test.WorkerHost))]
namespace Test.worker
{
public class WorkerHost
{
public void Configuration(IAppBuilder app)
{
app.UseHangfireDashboard(); // This is not available
}
}
}
All examples mention to configure hangfire like above but I dont get those extension methods. Already gone through
http://docs.hangfire.io/en/latest/configuration/using-dashboard.html

Any idea?

Alright, after trial and error. I got it working by adding Hangfire.AspnetCore nuget and using IApplicationBuilder instead of IAppBuilder.

1 Like