[Mono-devel-list] ConfigurationSettings

brunofr at olympum.com brunofr at olympum.com
Mon Nov 3 14:54:18 EST 2003

Quoting "Leonardo S." <leods at cwazy.co.uk>:
> I have a class that has to know a specific value that has to be setted
> in some kind of configuration file. 
> I've seen the ConfigurationSettings class, and it seems to be the thing
> that im looking for. While using xsp, i can use the web.config file to
> add keys to ConfigurationSettings. I'd like to know how to add keys
> without using a container (like xsp). 

If your executable assembly is called "foo.exe", you need to put your 
configuration in "foo.exe.config". configSettings is not available for library 
assemblies, as ConfigurationSettings.GetConfig () only accesses the config for 
application that started the process.


This mail sent through IMP: http://horde.org/imp/

More information about the Mono-devel-list mailing list