469,952 Members | 2,615 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,952 developers. It's quick & easy.

can I have one app.config for C#.NET solution with multiple projects

RK
Hi

I am working on C# application, where in I may require just one
app.config for the C#.NET solution with multiple windows application
projects. I know one web.config can be used for multiple projects, can
I use app.config is the same way??

thanx in advance.
RK
Jul 21 '05 #1
1 5210
>I am working on C# application, where in I may require just one
app.config for the C#.NET solution with multiple windows application
projects. I know one web.config can be used for multiple projects, can
I use app.config is the same way??


Not out of the box, completely anyway.....

You can

a) put most of your common settings into a "common.config" file, and
reference that from all your project .config files, by means of:

<appSettings file="common.config">
......
</appSettings>

or

b) You can use a third-party or custom-made config class, which allows
you to specify what .config file to load. Search e.g.
www.codeproject.com for samples - there are quite a few out there!
Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Andy G | last post: by
3 posts views Thread by Alfredo Barrientos | last post: by
2 posts views Thread by Samuel L Matzen | last post: by
1 post views Thread by Mark Rae | last post: by
4 posts views Thread by olduncleamos | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.