Programmatically setting the version of the Enterprise Library Configuration Tool for Visual Studio

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

Dte.Solution.Properties.Item("EntepriseLibraryConfigurationSetPropertyExtender.EnterpriseLibraryConfigurationSet").Value = "StackV1EntLib";
Of course that needs to be accompanied with an entry in the Registry that the StackV1EntLib string can point to which is listed below

"ConfigurationUIAssemblyPath"="C:\Program Files\MSStack\V1\StackEntLib\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.dll"
"ConfigurationUIPluginDirectory"="C:\Program Files\MSStack\V1\StackEntLib\"

Note: I use this blog to post both Personal and Technical articles.  For a technical only feed use the following URL (  For a family only feed use the following URL (

Technorati Tags: ,,
This entry was posted in Technology. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s