Group: microsoft.public.dotnet.framework
From: "Scott Roberts"
Date: Friday, November 16, 2007 9:30 AM
Subject: Re: Troubles with configuration files for application with several several dll

I believe that an application has only one config file. All loaded
Assemblies use the config file of the application (by default).


"bz" wrote in message
news:91bef727-8213-4182-bfd1-abdaff72dfc7@e4g2000hsg.googlegroups.com...
> Hi,
>
> I have an application that consists in one main exe and several dll's
> (BL, DAL, Util, etc)
> Each dll project has its own settings (in Properties\Settings.settings
> file).
> When I build the solution, in the bin folder of each project it VS
> generates the mylib.dll and mylib.dll.config files
> However, the config files are not copied over to the exe bin filder.
> There I only see myapp.exe and myapp.exe.config, and mylib1.dll and
> mylib2.dll, and no mylib1.dll.config and mylib2.dll.config
>
> Am I doing something wrong? I thought the dll config's should be
> copied there too, since for example if I want to test the app from
> there, the dll's need the config files, isn't it?
> Do I have to copy the configs manually?
>
> Thanks