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
原文地址:https://www.cnblogs.com/feishunji/p/2574528.html