Handling of App.config Files in Solution with some Subprojects



Hi all.
I'd like to get deeper into details of project layout in visual studio. And maybee someone finds it interesting ...
I've got a project with the following layout just theoretical:

Solution:
- Project Network (DLL) with app.config (some links to Webservices and so on)
- Project Database (DLL) with app.config (ConnectionStrings and so on)
- Project TestExecutable(Exe) with app.config (some Logging entries or so)

When I build that solution I get just on config file in the bin/Debug folder: "TestExecutable.Exe.config"

The settings in the other files are compiled into the DLLs and thanks to Lutz Roeder I can find it there in the CompilerGenerated internal sealed class Settings.
Hmmm, so far so good, but ...
When I like to change that value I have to open the sources, change the value and rebuild and distribute it.
I made a config file for easy changeing that values ...
Of course a simple workaround would be to put all admin stuff in the settings file of the Exe and tell every Dll in Constructor their settings.

But I'd like to know whether there's a possibility to do that in a way I got one .config file per project on filesystem in bin/DEBUG instead of built into dll?

Maybee someone finds this interesting ...

Bye Barney Gumble

.



Relevant Pages

  • Re: WSE 3.0 settings
    ... I think WSE should apply settings on fly. ... should look for the settings in the calling assembly config file (Calling ... I want to use third party DLL (Or I have to develop a DLL to be used in ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Attach and Access config file for Class Library
    ... The way this is *supposed* to work, the app.config would hold the settings ... including the settings for the dll. ... I don't use the config file API. ... and have your app simply load the xml file from the ...
    (microsoft.public.dotnet.framework)
  • Re: Starting up application from dll.
    ... > The config file gets its name from the .EXE, ... > their settings from the config file for the EXE. ... > differently for each application that uses the DLL. ... then you can create an XML file that the DLLs will use. ...
    (microsoft.public.dotnet.framework)
  • Re: WSE 3.0 settings
    ... I can make it work by putting all settings in main ... I want to use third party DLL (Or I have to develop a DLL to be used in other ... config file and put it in my main exe file. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: .NET dll config file
    ... the config file is really bound to the exe file. ... if you want to dedicate a given config file to a dll (and not share the ... our assemblies. ...
    (microsoft.public.dotnet.general)