Mike, do you know if the app.config is read using a normal XML parser? If it is, you could probably "link" them using the old XML DTD element substitution trick....
Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com > -----Original Message----- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Eddie Lascu > Sent: Monday, December 19, 2005 10:27 AM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Linking app.config files > > Mike, you are right - what a bummer. Now I will have to group some of my > configuration parameters in a config file where they do not have too much > logic. > I will also look at the EntLib Configuration Application Block to see if I > can achieve this through some custom sections. > Thanks anyway for sharing your knowledge. > > Regards, > Eddie > > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Behalf Of Mike Woodring > Sent: Tuesday, December 13, 2005 3:37 PM > > > Yes, but I can have the app configs defined like this: > > > > <!-- Dll1.extra.config --> > > <appSettings> > > <add key="key1" value="value1"/> > > </appSettings> > > > > <!-- Dll2.extra.config --> > > <appSettings file="Dll1.extra.config"> > > <add key="key2" value="value2"/> > > </appSettings> > > > > and > > > > <!-- App.exe.config --> > > <appSettings file="Dll2.extra.config"> > > <add key="key3" value="value3"/> > > </appSettings> > > > > No - the file attribute is only supported on the topmost config file. If > you try the above, you'll see that you get a configuration exception. > > -Mike > Bear Canyon Consulting LLC > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com