Skip to content

Environment Configurations

dwivedi-ankita edited this page Sep 8, 2021 · 5 revisions

ASPNETCORE_ENVIRONMENT is an environment variable, which ASP.NET Core uses to identify the runtime environment. ASP.NET Core configuration system uses it to load different configurations for different stages of application like Development, Staging & Production, etc.

To run in Development mode make changes as shown below,

EnvVar1

To run in Production mode make changes as shown below,

EnvVar2

The Environment Variable used is visible on Swagger UI :

EnvVar3

Clone this wiki locally