CodeSmith Community
Your Code. Your Way. Faster!

PATCH: Enterprise Library 3.0 Support

rated by 0 users
This post has 1 Reply | 2 Followers

Top 50 Contributor
Posts 96
Points 2,620

Okay, here it is: support for the Enterprise Library 3.0 binaries shipped last month.  You will find that when you look at the properties of the main template there is a new property in Section 2 named EntLibVersion which can be set to either v2 or v3 (simple, eh?).  Selecting one of these versions will tell netTiers which configuration file to use and which binaries/references to include with your project(s).

There are a few things to know about this patch before you embark:

First, this patch is built on SVN revision 551, however the patch file included those changes that I made to the file NetTiers.cst for the mapping.config patch I posted earlier today.  I am not familair enough with SVN patch files to be comfortable editing them by hand.  If you apply to patch files that have the same change, will the second patch file recognize that the change was made and accomodate it?  Is there a way to manually edit the second patch file to remove the duplicate change?  I looked at it, but it appeard to be using line numbers, which would suggest that editing the file is a bad idea.

Second, you will need to create two new sub-directories inside of the "References" folder.  They should be named EntLibV2 and EntLibV3.  EntLibV2 should have the same Enterprise library files as were previously located in the References directory.  EntLibV3 should have all of the version 3 files that come in the bin directory of your Enterprise Library 3.0 installation directory.  The AJAX and NUnit binaries should remain in the References directory where they were originally.

You will need to delete the current "entlib.config.cst" file from the VisualStudio directory.  This patch will create two new files; "entlib.v2.config.cst" and "entlib.v3.config.cst".  These files are mostly the same, their biggest difference being the version-specific strong-names of the Enterprise Library assemblies.  I kept the files separate instead of trying to merge them in case they become very different later (i.e. adding in v3 functions that aren't even available in v2).

As always, feel free to provide feedback.

  • | Post Points: 35
Top 10 Contributor
Posts 925
Points 35,460

Thanks Tony!

Patched in at version SVN554

swin

------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems