concept host environment in category asp.net

appears as: hosting environment
ASP.NET Core in Action

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.

11.5.3. Setting the hosting environment

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.

Figure 16.13. Setting the hosting environment and URLs for an application by loading them from a custom IConfiguration. You can load the values using any configuration provider.