How to set IIS hosting environment in ASP.NET Core
When running ASP.NET Core apps, the WebHostBuilder
will automatically attempt to determine which
environment it is running in. By convention, this will be one of Development
, Staging
or Production
,
but you can set it to any string value you like.