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
  • 55,348
  • 14
  • 97
  • 151
MemoryLeak
  • 7,322
  • 23
  • 90
  • 133

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
  • 295,962
  • 43
  • 465
  • 541