Adding a Strong Name to an existing DLL that you don't have the source to

1. Generate a KeyFile

sn -k keyPair.snk

2. Get the MSIL for the assembly

ildasm "D:\Myassembly.dll" /out:D:\Myassembly.il

3. Rename the original assembly, just in case

ren Myassembly.dll Myassembly.dll.orig

4. Build a new assembly from the MSIL output and your KeyFile

ilasm D:\Myassembly.il /dll /key=D:\keyPair.snk /output=D:\Myassembly.dll
 
 
reference: http://www.geekzilla.co.uk/ViewCE64BEF3-51A6-4F1C-90C9-6A76B015C9FB.htm
posted @ 2012-07-03 12:16  Figo Fei  阅读(281)  评论(0编辑  收藏  举报