Enterprise Library Configuration and Visual Studio

If your company decides to sign their Enterprise Library files with their public and private keys the default Ent LIb Configuration tool that is integrated with Visual Studio will not by default use the newly signed assemblies.  The following is a brief description on how to update your system so that the appropriate assemblies are used.

1.) Add the following registry key and values to the registry


You need to add an additional configuration set.  By default you will see the Microsoft Signed set.  Below is how the new key will be set up.   In the following example you will need to change the paths for ConfigurationUIAssemblyPath and ConfigurationUIPluginDirectory to point to where your company signed assemblies are located.

{Your Set Name}
     (Default) REG_SZ (Value not set)
     (ConfigurationUIAdapterClass) REG_SZ Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.SingleHierarchyConfigurationUIHostAdapter
     (ConfigurationUIAssemblyPath) REG_SZ C:\CompanySigned\GAC\EnterpriseLibrary\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.dll
     (ConfigurationUIPluginDirectory) REG_SZ C:\CompanySigned\GAC\EnterpriseLibrary

2.) The second step to ensure that the Visual Studio Enterprise Library configuration tool uses the newly signed assemblies is to open the Visual Studio solution that you are working with.  Select the solution name and look at the properties.  After you make the above registry entry in 1 above be sure to close/open VS.NET.  There is a property called EnterpriseLibraryConfigurationSet.  If step 1 was successful you should see in the selection list for ConfigurationSet the new entry {Your Set Name}.  Great.


In figuring this out I used as reference the following internet resources




comments powered by Disqus


Recent Tweets

Maybe resolved itself, after resetting emulator and couple vs.net restarts - will let you know
@MillerMark A few weeks ago you tweeted that something huge/incredible was coming....what is/was it? (I am hoping s… twitter.com/i/web/status/9…
Oddly, it won't hit breakpoints in XF .net standard 2 project now either
@JamesMontemagno Updated to 15.7 preview 2 Visual Studio - now having lots of odd thread issues when starting debug… twitter.com/i/web/status/9…