markneustadt.com

Configuring Enterprise Library in Visual Studio 2013

Microsoft’s Patterns & Practices Library is a terrific way of adding some great functionality to your applications.  The three aspects of it’s EnterpriseLibrary are:

  • Dependency Injection via Unity
  • Exception Handling
  • Logging

These tools get added to your project via NuGet.

EntLib

Configuring the library components can be somewhat confusing though.  You add the necessary application blocks to your web.config or app.config file and then start using the features in your code.

config

Thankfully, there’s an easier way to do it.  You simply right click on the configuration file and select the “Edit configuration file v6”

edit

That gets you a handy GUI to edit your configuration.

gui

The problem is that in Visual Studio 2013, it’s not there.  You can’t fire up the GUI configuration editor.  Thankfully, Randy Levy already figured it out.

https://randylevy.wordpress.com/2014/10/04/enterpriselibrary-config-for-vs2013/

Download the updated version from him and you can edit the configuration like a civilized person.  🙂

Scroll To Top