Strongly signing and updating links

I have two, third-party builds:

Foo.dll

and

ReferencesFoo.dll

As noted, ReferencesFoo.dllis an assembly that has a link toFoo.dll

For my application, I need to undo these assemblies. I use ildasm / ilasm in combination with the signature key to resign, however ReferencesFoo.dllit still contains (in it a manifest?) A reference to the old public key Foo.dlland the public key token.

So, how do I sign both dll libraries with my key and update the links in ReferencesFoo.dllwithout getting the source code and recompiling?

+3
source share
3 answers

SN.exe( -R ).

, . , , .

. № 35, :

  • MajorVersion, MinorVersion, BuildNumber, RevisionNumber (2- )
  • (4- AssemblyFlags)
  • PublicKeyOrToken ( Blob heap - , )
  • ( )
  • ( )
  • HashValue ( Blob)
+2

Mono.Cecil. Foo.dll snk ReferenceFoo.dll .

+3

I found this article that shows exactly how to do this.

It uses sn, ildasm, ilasm and a text editor.

http://buffered.io/posts/net-fu-signing-an-unsigned-assembly-without-delay-signing

+2
source

Source: https://habr.com/ru/post/1744997/


All Articles