How to setup ASPNETCORE_ENVIRONMENT variable on an IIS Website

How to setup ASPNETCORE_ENVIRONMENT variable on an IIS Website

When running an asp.net core website on IIS, it will default to "Production", when ASPNETCORE_ENVIRONMENT is not set. This is actually a good default.You could set is globally on the machine, but when…

Read this article