AllMight
Correct environments handling (appSettings.json)
We are using azure DevOps and I wondered what's the best way to handle environments.
Option 1: keep multiple app settings files for every environment and set on build the environment variable.
Option 2: use azure DevOps file replacement and use only one release configuration.
Both ways seems a bit weird. I want from one side to use the ASPNETCORE_ENVIRONMENT but also keep the variables in azure DevOps per environment and it seems they don't really work together.
Any suggestions what's the best way?
5 replies