如何对第三方组件dll签名

 

If you have the source, you can recompile with a strong name as shown previously. If the reference assembly belongs to a third-party and you cannot ensure that it will be given a strong name, you can disassemble and then reassemble the assembly with a strong name.

Your original assembly will be overwritten, so if you want to keep the original version, ensure you make a backup copy of it before proceeding with the following steps.

Use Microsoft Intermediate Language (MSIL) Disassembler to disassemble the assembly:

  • ILDASM thirdparty.dll /out:thirdparty.il

Use MSIL Assembler to reassemble the assembly with a strong name:

  • ILASM thirdparty.il /dll /key=strongkeyfile.snk

你可能感兴趣的:(dll)