现在的位置: 首页 > 综合 > 正文

如何对第三方组件dll签名

2011年06月15日 ⁄ 综合 ⁄ 共 571字 ⁄ 字号 评论关闭

 

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

抱歉!评论已关闭.