Our development team primarily develops Windows Form and Windows Service application using C# only.
We're trying to come up with a standard to use for all our applications when reading in settings from a settings file or app.config file.
The goal is to have our applications read in either Development, Test or Production settings based on what environment we deploy our application to. How we determine the environment is based on what server the application is deployed to. I'm just looking for some help from others on what's the most efficient way to do this and is there any industry standards we should use?
For example, should we use just one app.config file with 3 different sets of variables in there or should we use 3 different settings files, one for DEV, TST and PRD? When the application loads our goal is to read in the correct settings into our own class with properties that we can access throughout the application.
Any help would be greatly appreciated.
Thank you so much.