How to set hosting environment name for .NET Core console app using Generic Host (HostBuilder)
I am setting up a .NET Core 2.x console app as a Windows service and need to load an appsettings json file based on the environment. I was thinking to start the service with a command line argumen...