hosting environment

The named environment an app runs in, such as Development, Staging or Production, set by the ASPNETCORE_ENVIRONMENT variable.

In more detail

It chooses which appsettings.{Environment}.json file loads and whether user secrets and developer diagnostics are enabled. If unset, ASP.NET Core assumes Production.

Related terms

Taught in

References