concept host environment in category asp.net
appears as: hosting environment

This is an excerpt from Manning's book ASP.NET Core in Action.
As useful as it is, setting IHostingEnvironment can be a little cumbersome if you want to switch back and forth between different environments during testing. Personally, I’m always forgetting how to set environment variables on the various operating systems I use. The final skill I’d like to teach you is how to set the hosting environment when you’re developing.
In this section, I’ll show you a couple of ways to set the hosting environment when you’re developing. These makes it easy to test a specific app’s behavior in different environments, without having to change the environment for all the apps on your machine.