Configuration Sharing (~file attribute)

Topics: General discussion, Logging Application Block
Feb 16, 2011 at 8:45 PM

When there are multiple projects in a solution that share similar configurations, you can extract out the similiarities into another configuration file and link to it.  An example is the file attribute for the appSettings node:

<configuration>  

<appSettings file="Configs\sharedConfig.config">

</appSettings>

....

</configuration>

 

Is there something like this for the Logging Block?  Or is there a way to share the configuration across multiple projects? I don't like the fact that a huge chunk of my configuration file is now listener and source configurations, which will be configured the same across all my projects.

Feb 17, 2011 at 12:57 AM

I believe this thread is related to your problem - http://entlib.codeplex.com/discussions/221715?ProjectName=entlib which has been resolved implementing an approach something like the approach mentioned in this blog - http://blogs.msdn.com/b/tomholl/archive/2006/04/02/entlib2externalconfig.aspx. HTH.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com