This is our least favourite technique, as it includes each Build Configuration in the compiled apps code base.
However when you have twenty apps, with a lot of configuration items, it can make it easier to ensure that every app has a complete configuration, by using an initialised flag on each configuration, and it can be more refactorable.

To use this you would 

  • Create multiple constants definitions for each configuration
  • Create a GlobalSettings.cs static class, or a Singleton, injectable with Dependency Injection
  • Use an Init() method on App Startup to configure the settings