Do the aspnet core hosting environments only matter when running locally using IISExpress?
I have environment specific configuration code that switches on the environment variable. Indeed, this all works fine when I change IIS Express to match the defined environment when debugging locally.
However when I go to publish the application, what environment will it choose? How can I control this?
Thanks for helping clear up my confusion.