How to Re-Sign (Strongly Name) an existing .NET Binary


Do you have an existing .Net binary you are trying to use with an existing project that uses strongly named binaries?  If the pre-existing binary is not strongly signed too, you can't use it.  Doh!  I found this nice tutorial that shows you how to de-compile and existing binary and re-sign it with a new key!


 A reader suggested a similar tool, ILMerge that does something similar.

Comments (2)
  1. MichaelGG says:

    You don’t have to diassemble it actually. All that’s needed is to replace the public key, and SN will do the rest (recompute hashes, resign, etc.). I have a tiny program to just search and replace the public key in the assembly, then call SN:

    http://www.atrevido.net/blog/PermaLink.aspx?guid=f772c18a-f389-4c28-bd6a-a30f4ccc84f5

Comments are closed.

Skip to main content