我有一个没有强名称的程序集。我没有它的源代码。
我现在需要签名。有没有办法做到这一点?
签署第 3 方程序集的简单GUI
方法Assembly Strong Name Signer
是使用.
它的源代码可以在 Github 上找到。用于Mono.Cecil
脏活。也可作为command line
工具使用。
我发现推荐的ildasm
->ilasm
在几个地方建议的往返行程很麻烦,最好避免。
我不知道如何Assembly Strong Name Signer
处理多程序集依赖项。如果没有,这里描述了问题及其解决方案(2008 年发布):http ://buffered.io/posts/net-fu-signing-an-unsigned-assembly-without-delay-signing/
看看我的StrongNameResigner。它可以签署或退出程序集以及依赖它的所有程序集,同时还可以使用如下命令更新所有引用:
StrongNameResigner.exe -a "c:\temp" -k "key.snk" Foo.Bar
使用强名称工具实用程序 ( sn.exe )。
You can sign the assembly with the help of VS command prompt.
Just type the path in VS cmd prompt where your project is physically present.
In VS cmd
<your project path>sn -k <name of your project>.snk
Then go to your project in Solution Explorer -> properties -> Signing -> check checkbox
-> Browse to the key which is created using VS cmd.