.NET core: Hangfire setup with NLog
问题 I have an .NET Core 2 powered API that I would like to add Hangfire to. The project is already using NLog to log to a MySQL database and it works fine, but when I try to setup and use Hangfire I get the following error: Method not found: 'Hangfire.Logging.ILog Hangfire.Logging.LogProvider.GetCurrentClassLogger()'. The Hangfire dashboard works, but I get that error when trying to enqueue my first job like this: BackgroundJob.Enqueue(() => Console.WriteLine("Fire-and-forget")); I have read the