Getting the environment tag using Text File - eaardal/konfiggy GitHub Wiki
This method resolves the environment tag by storing it in a text file on disk.
In your start-up logic, set Konfiggy's EnvironmentTagStrategy property to the TextFileTagStrategy implementation.
Even though Konfiggy will create the file and directories it needs, you must manually go to each file and enter its environment tag value, otherwise it'll be empty and Konfiggy will throw an exception. (Note: a possible fix on this in the future)
Note: the contents of the text file should only be the environment tag, nothing else. Konfiggy will take all text in the file and treat it as the environment tag.
IKonfiggy konfiggy = new Konfiggy();
konfiggy.EnvironmentTagStrategy = new TextFileTagStrategy();
By default the file is stored in: C:\Users[User]\AppData\Roaming\Konfiggy[Executing-Assembly-Name_Version-Number]\Konfiggy.txt
You can change this by giving your own implementation of IFileSettings to the TextFileTagStrategy class constructor or FileSettings property.