Reputation: 13442
How would I share configuration data between .net desktop apps? I have used a common .ini file before but now when transitioning into .net I wonder if that's the preferred way any longer? App.config seems more like an application specific file more than a common config file and I don't know how to write settings there as ConfigurationManager.AppSettings.Set(...) seems not to actually write any changes.
Upvotes: 2
Views: 436
Reputation: 63295
It is possible to redirect configuration section to an external file via configSource attribute,
http://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.configsource.aspx
So you can put common settings in such a file, and load it in several app.config files.
Upvotes: 3