I previously wrote about the issue we ran into using Enterprise Library and Unity that caused us to have to roll our own version of the binaries. The procedure to get the config tool to reference our custom binaries involves changing the EnterpriseLibraryConfigurationSet solution property. Since we are developing a Starter Kit to be used for new projects starting up here at the Church I wanted to add to our Starter Kit automation the setting of the property to the appropriate value. Tried as hard as I wanted I couldn’t get it to work until I accessed the Solution Property using EntepriseLibraryConfigurationSetPropertyExtender.EnterpriseLibraryConfigurationSet which is how it was listed when I enumerated the property collection.
So the one line piece of code to do the job is
Of course that needs to be accompanied with an entry in the Registry that the StackV1EntLib string can point to which is listed below
Note: I use this blog to post both Personal and Technical articles. For a technical only feed use the following URL (http://bryanandnoel.spaces.live.com/category/technology/feed.rss). For a family only feed use the following URL (http://bryanandnoel.spaces.live.com/category/family/feed.rss)