EnterpriseLibraryCoreExtension not found

Topics: Building and extending application blocks, Logging Application Block
Apr 11, 2011 at 10:35 AM


Hi all,
at page 17 of the book "Developer's Guide to Microsoft Enterprise Library" by Microsoft Press, there is the following code:

var theContainer = new UnityContainer().AddNewExtension<EnterpriseLibraryCoreExtension>();

but if I compile my WinForm I got this error:

Error 1 The type or namespace name 'EnterpriseLibraryCoreExtension' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Luigi\Documents\Visual Studio 2008\Projects\FormLib5\FormLib5\Form1.cs 41 69 FormLib5

and I already have the following dll's:

using Microsoft.Practices.EnterpriseLibrary.Logging;
using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.Unity;

What's wrong with it?

Thanks in advance.


Apr 11, 2011 at 11:13 AM


Have you tried to add this line?

using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Unity;


Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.