I have currently 3 appsetting.jsons
appsettings.Development
appsettings.Production
appsettings.Qa
I have my visual studio to built with Development, but now I want to publish my code to my QA server.
Howe can set up my code to automatically publish with the right "ASPNETCORE_ENVIRONMENT" value so that the QA IIS knows to use the "appsettings.Qa" config.
I don't want to manually setup the environment variables on the server as if it changes, I can see people will forget to reset it.