The easiest way to save the configuration is to place it as code in a common .tt file, which you can include from several templates (i.e. if you need a connection string, make it a constant in the class function block). However, if this is not an option, and you need to access the settings in the .config file, I agree with John's suggestion.
Oleg Sych
source share