.NETCore 2.0 Console. app.UseHangfireDashboard is not available

aspnetcore
dotnetcore
dashboard
Tags: #<Tag:0x00007f281ad39228> #<Tag:0x00007f281ad390e8> #<Tag:0x00007f281ad38fa8>

#1

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?


#2

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