By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,138 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

settings.settings ??

P: n/a
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
Mar 31 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/...tml/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

Apr 2 '06 #2

P: n/a
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
"Steven" <St******@community.nospam> wrote in message
news:12**********************************@microsof t.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/...tml/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

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.