1

how can i configure the azure pipeline to use different appsettings files according to the environment?

I have 4 different files and I can't transform appsettings.json according to the environment.

my appsettings files

Does anyone have an idea?

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107
  • You could use a powershell task at the beginning to set the environment like `$Env:ASPNETCORE_ENVIRONMENT = "Development\Homolog"`. Or you could change the `ASPNETCORE_ENVIRONMENT` under appsettings.json file. Check [this](https://stackoverflow.com/questions/52753893/how-does-one-transform-appsettings-in-asp-net-core) and [that](https://stackoverflow.com/questions/43073959/how-do-i-transform-appsettings-json-in-a-net-core-mvc-project). – Mr Qian May 25 '21 at 10:07

0 Answers0