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

相关文章:

  • 2021-12-18
  • 2021-12-31
  • 2022-12-23
  • 2021-10-13
  • 2022-01-07
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-26
  • 2021-11-13
  • 2021-08-11
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案