How To Set Environment for an IIS Hosted .Net Core App

The environment for .Net Core applications can be determined via environment variables.

.Net Core applications use the “ASPNETCORE_ENVIRONMENT” value for determining the environment profile. This profile is very important and can be used to determine many application settings or for specific error pages and exception handling.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mert Ilis

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.