Community

How to set the hosting environment in ASP.NET Core

(Andrew Lock) 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.

Read More - Register for Free Membership