enterprise-libraryilasm

strong naming for microsoft enterprise library


I am using Microsoft enterprise library in one of my projects. I need to strong name one of the dlls which is Microsoft.Practices.EnterpriseLibrary.Common. But it is not working.

When I decompile using ILDASM, it generates 3 files.

  1. IL file
  2. .RESOURCES file
  3. Common resource script file

How do I compile it with the key file. Which ILASM command should I use?


Solution

  • The dll's are distributed from the original install in a few different modes. One set of files is already signed, so you need to find that set and use the files from that set.

    When you install the EntLib package, you get the compiled binaries (some are signed) AND you get the source code, which compiles the source-code and creates the dlls (not signed).

    My guess is that you are using the non-signed (compiled from the source code on your local machine) files, instead of the signed ones.