Using the Enterprise Library (June 2005) with Visual Studio 2005

In this article, I will give some hints on how to customize the Microsoft Enterprise Library (June 2005) for efficient usage with Visual Studio 2005.

The Enterprise Library was first released in January 2005 by the Microsoft Patterns and Practices team. The library includes a couple of application blocks (exception handling, logging, security, ...) which have formerly been published separately. An update of the Enterprise Library was released in June 2005. Both releases are designed and tested for the .NET Framework 1.1. The June 2005 release is also compatible with .NET 2.0 (after some minor modifications, see below), i.e. the library can be built with Visual Studio 2005 and it runs with the .NET Framework 2.0. (This is not true for the January 2005 release.)

The upcoming Enterprise Library 2.0 release, which will leverage the new capabilities of .NET 2.0, is announced and will soon be published. So why should you care about using the Enterprise Library June 2005 with Visual Studio 2005? The Enterprise Library 2.0 is not at all backwards compatible, there are significant changes to the internal architecture and the interfaces. Some application blocks which overlap with the new parts of the .NET 2.0 runtime library have been removed completely.

What I have in mind is a smooth migration of a (probably large) solution from .NET 1.1 / Enterprise Library June 2005 / Visual Studio 2003 to .NET 2.0 / Enterprise Library 2.0 / Visual Studio 2005. As part of such a migration, it does make sense to postpone the Enterprise Library June 2005 -> Enterprise Library 2.0 migration step, i.e. first to migrate an existing solution to Visual Studio 2005 while still using the Enterprise Library June 2005.

Read the complete article