|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
settings.settings ??How is the settings.settings supposed to be used??? If I add it to a class library, I get a app.config file with a <applicationSettings> section, containing my settings. However if I include this class library in a web-project, it seems like I have to copy this <applicationSettings> settings into the web.config file of my web.config file if I want to override some of the settings.... Now I have quite a number of Class libraries, each with it own different set of settings, and I use these libraries in a number of projects, so I quite a taks to make sure all <applicationSettings> sections are in all the right places.... Isn't there a way to put all the settings into one file and then refer to this file with something like: <applicationSettings file="commom.config" /> or something similar??? TIA Søren Absolutley, take a look at the following URL:
http://support.microsoft.com/kb/555396 As well the the Patterns and Pratices Enterprise Library provides a configuration block that will allow you to accomplish this (http://msdn.microsoft.com/practices/). See the Configuration Application Block for more details: http://msdn.microsoft.com/practices/guidetype/AppBlocks/default.aspx?pull=/library/en-us/dnpag2/html/config.asp Show quoteHide quote "Søren M. Olesen" wrote: > Hi > > How is the settings.settings supposed to be used??? > > If I add it to a class library, I get a app.config file with a > <applicationSettings> section, containing my settings. However if I include > this class library in a web-project, it seems like I have to copy this > <applicationSettings> settings into the web.config file of my web.config > file if I want to override some of the settings.... > Now I have quite a number of Class libraries, each with it own different set > of settings, and I use these libraries in a number of projects, so I quite a > taks to make sure all <applicationSettings> sections are in all the right > places.... > > Isn't there a way to put all the settings into one file and then refer to > this file with something like: > > <applicationSettings file="commom.config" /> > or something similar??? > > TIA > > Søren > > > Thanks for your reply...however using the files="..." option seems to only
work for the <appSettings> section, not the <applicationSettings>...kind of wierd though.... Regards, Søren Show quoteHide quote "Steven" <StevenSw@community.nospam> wrote in message news:12789C9C-2650-458F-B35F-F9B1BAFBCE7B@microsoft.com... > Absolutley, take a look at the following URL: > http://support.microsoft.com/kb/555396 > > As well the the Patterns and Pratices Enterprise Library provides a > configuration block that will allow you to accomplish this > (http://msdn.microsoft.com/practices/). > > See the Configuration Application Block for more details: > http://msdn.microsoft.com/practices/guidetype/AppBlocks/default.aspx?pull=/library/en-us/dnpag2/html/config.asp > > "Søren M. Olesen" wrote: > >> Hi >> >> How is the settings.settings supposed to be used??? >> >> If I add it to a class library, I get a app.config file with a >> <applicationSettings> section, containing my settings. However if I >> include >> this class library in a web-project, it seems like I have to copy this >> <applicationSettings> settings into the web.config file of my web.config >> file if I want to override some of the settings.... >> Now I have quite a number of Class libraries, each with it own different >> set >> of settings, and I use these libraries in a number of projects, so I >> quite a >> taks to make sure all <applicationSettings> sections are in all the right >> places.... >> >> Isn't there a way to put all the settings into one file and then refer to >> this file with something like: >> >> <applicationSettings file="commom.config" /> >> or something similar??? >> >> TIA >> >> Søren >> >> >>
Patterns anyone?
How do I detect a form being opened already From VB.NET to Word 2003 How can I get caption of all open windows?? VB 2005 variable declaration syntax Calling DLL atruntime Print any doc ( .doc, .xls, .pdf, .jpg, .etc ) LIstbox having multicolumn Send raw packet Saving binary to varbinary(max) data column in SQLserver 05 |
|||||||||||||||||||||||