7

My colleague deploy a dll and he signed with the key generated on his machine.Right now I need to use the DLL in my project, so I need to resign the DLL, I generate a key pair on my computer, then try to resign it with sn.exe -R or sn.exe -Vr , but always failed.

Is it possible to resign a signed .net dll with a different key pair?

Thanks in advance !

starblue
  • 53,481
  • 14
  • 94
  • 148
MemoryLeak
  • 7,194
  • 23
  • 84
  • 130

1 Answers1

9

See: How to sign a .NET Assembly DLL file with a Strong Name?

Ryan Farley's linked article suggests:

disassemble the DLL to IL and then reassemble the IL back into a DLL and include the new key file.

Community
  • 1
  • 1
Mitch Wheat
  • 288,400
  • 42
  • 452
  • 532