From reading into the documentation
for Enterprise Library v1.0 I can't see anyway of having custom
settings like you would do for different enironment instances in one
config file e.g.
System.Configuration.ConfigurationSettings.AppSettings["DebugFlagDev"]
System.Configuration.ConfigurationSettings.AppSettings["DebugFlagLive"]
I'd like to be able to just grab
"DebugFlag" and it know what instance I am on and control the settings
from within the Config Tool. Surely this would just be an extension of
the Data Access Application Block.
I've been trying to read around to find anyone who's already done this but haven't found anything as yet.
[UPDATE]
I just found this post on Francesco Rizzi's site which allows you to create an Xml Include Type and add this as a settings block in the Config Tool.
Also found David Hayden's write up on this as well and found his article a bit easier to comprehend.
I've actually taken it one step further and added
ConfigurationSettings for each machine configuration e.g. for when I
work locally, when I deploy to Staging and LIVE etc. When I call the
GetConfiguration the section name I use is the
System.Web.HttpContext.Current.Server.MachineName.