Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoid multiple app.config files?

Status
Not open for further replies.

PeteG

Programmer
Feb 23, 2001
144
GB
Hi, I have a C# solution with several projects (in VS2008); one that compiles to an .exe and the others to .dll's
Some of the dll's have web references added and, consequently, they each have their own app.config file automatically created. I would like to have just the one app.config file that resides in my main (exe) project but can't see how to do this. Can anybody help? I have been converting this project from VS2003 to VS2008. I did have this 'one config file' set up in 2003 but can't seem to replicate it this time round. The benefit I am looking for is for ease/maintenance. I would like to have just one place where I can, for example, edit the web service url's so that I can have a config file for UAT, for Dev, for prod etc.
 
the auto-creation of config files is a VS thing. you should be able to ingore the "additional" config files and put the required configurations in to the "main" app.config file.

there may be an option to display the auto-creation somewhere in VS. Asking on an offical MS forum (MSDN or something) may yield better results.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top