We have multiple environments running from the same machine. For our web applications we can easily set the ASPNETCORE_ENVIRONMENT variable for each different web application using the web.config.
However, we also are deploying console applications that are scheduled to run using Windows Task Scheduler. We haven't been able to figure out how to set per console app a different ASPNETCORE_ENVIRONMENT variable.
We've looked at the Microsoft documentation and it shows using a command line that looks like this:
set ASPNETCORE_ENVIRONMENT=Development
Does that set the whole machine to that environment? We don't understand the scope of running a command like that.
Anyone have any insight to the intended use for setting this variable for a console app?