© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Issues using `.json5` files for `appsettings.json`
C#CC# / help
10mo ago
❔ Check if appsettings.json or appsettings.Development.json
C#CC# / help
3y ago
Appsettings.json across projet
C#CC# / help
2y ago