Fixed: dotnet run -e Staging Still Starts the App in Development
I ran dotnet run -e Staging to start my API in the Staging environment, and it started in Development anyway, with no error and no warning. -e sets an environment variable, so it needs a name and a value: -e ASPNETCORE_ENVIRONMENT=Staging does what the short form looks like it should.
