Example
To set the environment to Development
SET ASPNETCORE_ENVIRONMENT=Development
Now running an Asp.Net Core application will be in the defined environment.
Note
- There should be no space before and after the equality sign
=
.
- The command prompt should not be closed before running the application because the settings are not persisted.