This has nothing to do with Hangfire, so you can skip steps 2 and 3, and get a similar result.
If you're creating a self-contained publication (i.e. bound to specific runtime,
win7-x64 in your case), it would copy a whole .net core runtime and a bunch of native windows dlls to the publish folder. It would also create a loader for that, so you need to run
WebApplication.exe instead of
If you want to run it with
dotnet command (i.e. using shared .net core runtime), just publish it without
-r win7-x64 parameter.