Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Extending app.config with addtional config

Reply
 
Old 03-04-2009   #1 (permalink)
Yash


 
 

Extending app.config with addtional config

Hi,

All configuration used by a .NET program goes in the app.config file.
Is it possible to add configuration from another config file so that
the program runs with an extended configuration?

For. e.g. Myapp.exe has app.config. I also have myfile.config which
follows the config file structure. I want .NET to consider app.config
and add to it the configuration I give in myfile.config.

What does it take to do this?

Thanks,
Yash

My System SpecsSystem Spec
Old 03-04-2009   #2 (permalink)
sloan


 
 

Re: Extending app.config with addtional config

See:

http://www.eggheadcafe.com/tutorials...-configur.aspx

for Peter's excellent write up.



"Yash" <yashgt@xxxxxx> wrote in message
news:7de31b6a-0c3f-4e3c-a3c7-3221cb1a2411@xxxxxx
Quote:

> Hi,
>
> All configuration used by a .NET program goes in the app.config file.
> Is it possible to add configuration from another config file so that
> the program runs with an extended configuration?
>
> For. e.g. Myapp.exe has app.config. I also have myfile.config which
> follows the config file structure. I want .NET to consider app.config
> and add to it the configuration I give in myfile.config.
>
> What does it take to do this?
>
> Thanks,
> Yash

My System SpecsSystem Spec
Old 03-05-2009   #3 (permalink)
Yash


 
 

Re: Extending app.config with addtional config

In my case, the main application invokes my DLL. I would like to add
my configuration from the code in my DLL, without changing the main
application's config.
The main app calls an initialize function in my dll. This is where I
would like to ammend the configuration the program has read from
app.config.


On Mar 4, 6:42*pm, "sloan" <sl...@xxxxxx> wrote:
Quote:

> See:
>
> http://www.eggheadcafe.com/tutorials...c4-4d2b-b180-c...
>
> for Peter's excellent write up.
>
> "Yash" <yas...@xxxxxx> wrote in message
>
> news:7de31b6a-0c3f-4e3c-a3c7-3221cb1a2411@xxxxxx
>
>
>
Quote:

> > Hi,
>
Quote:

> > All configuration used by a .NET program goes in the app.config file.
> > Is it possible to add configuration from another config file so that
> > the program runs with an extended configuration?
>
Quote:

> > For. e.g. Myapp.exe has app.config. I also have myfile.config which
> > follows the config file structure. I want .NET to consider app.config
> > and add to it the configuration I give in myfile.config.
>
Quote:

> > What does it take to do this?
>
Quote:

> > Thanks,
> > Yash
My System SpecsSystem Spec
Old 03-09-2009   #4 (permalink)
sloan


 
 

Re: Extending app.config with addtional config

You can look here, but that is 1.1 stuff I think:
http://www.bearcanyon.com/dotnet/#AssemblySettings


"Yash" <yashgt@xxxxxx> wrote in message
news:6b550dab-57cf-4ff7-96d6-849b092aef84@xxxxxx
In my case, the main application invokes my DLL. I would like to add
my configuration from the code in my DLL, without changing the main
application's config.
The main app calls an initialize function in my dll. This is where I
would like to ammend the configuration the program has read from
app.config.


On Mar 4, 6:42 pm, "sloan" <sl...@xxxxxx> wrote:
Quote:

> See:
>
> http://www.eggheadcafe.com/tutorials...c4-4d2b-b180-c...
>
> for Peter's excellent write up.
>
> "Yash" <yas...@xxxxxx> wrote in message
>
> news:7de31b6a-0c3f-4e3c-a3c7-3221cb1a2411@xxxxxx
>
>
>
Quote:

> > Hi,
>
Quote:

> > All configuration used by a .NET program goes in the app.config file.
> > Is it possible to add configuration from another config file so that
> > the program runs with an extended configuration?
>
Quote:

> > For. e.g. Myapp.exe has app.config. I also have myfile.config which
> > follows the config file structure. I want .NET to consider app.config
> > and add to it the configuration I give in myfile.config.
>
Quote:

> > What does it take to do this?
>
Quote:

> > Thanks,
> > Yash

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
config.xml General Discussion
Powershell.exe.config PowerShell
app.exe.config on XP but app.config on Vista x64? Vista General
zero wireless config Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46