Strong signing a third party assembly in .net

Just a quick tip for all you codeplex/codeproject code downloading junkies

Solution for assigning a strong name to a third party DLL using your visual studio command prompt.

E.g. Lets say the name of the third party DLL is myTest.dll.
Step 1: Dis-assemble the assembly
ildasm myTest.dll /out:myTest.il

Step 2: Re-Assemble using your strong-name key
ilasm myTest.il /res:myTest.res /dll /key:myTest.snk /out:myTestSN.dll

for verification you can use following command,
sn -vf myTestSN.dll

One Response to “Strong signing a third party assembly in .net”

  1. HI this is better than my solution. Thanks.

    http://preetsangha.blogspot.com/2007/10/signing-third-party-assembly.html

Leave a Reply