Migrating from Enterprise Library 4.1 to .NET 4.7 RRS feed

  • Question

  • Hi All,

    We are using enterprise library 4.1 in our project and client has asked us to migrate the code which is written in EL 4.1 to .NET 4.7 i.e remove EL 4.1, so now the question is that are all application blocks that are in EL 4.1 available in .NET 4.7 ? Can I get a consolidated list of which class libraries are use now for each application block of EL 4.1 ? I can't find anything on the internet.



    Thursday, February 22, 2018 2:56 AM

All replies

  • Hello,

    Since this library is not active anymore the best advise is to try it out.

    First backup your solution via whatever solution you use for version control. Switch to the new version and change the Framework version, do a build, see if the build works. Of course since this library is not under development it will not having anything for C#6 or C#7. 

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Thursday, February 22, 2018 10:28 AM
  • No, not all the blocks are available in .NET 4.7. The blocks where designed as best practices architectural patterns that can be used in code. The framework, for the most part, does not contain this kind of logic. The blocks weren't previews for what would be added to the framework.

    You can do everything the blocks were doing in your own code but you'll have to replicate the logic or find replacements for each one. Alternatively just go get the source code for the block(s) you're using and put them in your own library. It depends upon which one's you were using as to how hard or easy this process will be.

    Michael Taylor

    Thursday, February 22, 2018 3:13 PM