You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set the environment in a command shell when the app is run #38002
The command provided in the documentation sets an environment variable with the name "Staging" to the empty string. dotnet run -e Staging
since .NET CLI uses -e|--environment option to set environment variables not the environment itself. However, we can use -e to set DOTNET_ENVIRONMENT : dotnet run -e DOTNET_ENVIRONMENT=Staging
or ASPNETCORE_ENVIRONMENT :
`
Thanks, @Albirair! You're absolutely correct, and this is entirely MY fault. 🙈 It happened when I was working on an overhaul of the article, and I didn't write the command correctly. I'll fix the command right now and get it merged as soon as possible. Thanks for letting me know!
Activity
guardrex commentedon Oct 24, 2026
Thanks, @Albirair! You're absolutely correct, and this is entirely MY fault. 🙈 It happened when I was working on an overhaul of the article, and I didn't write the command correctly. I'll fix the command right now and get it merged as soon as possible. Thanks for letting me know!