瀏覽代碼

sn: add page (#2744)

Starbeamrainbowlabs 6 年之前
父節點
當前提交
ebdcd30566
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/common/sn.md

+ 19 - 0
pages/common/sn.md

@@ -0,0 +1,19 @@
+# sn
+
+> Mono StrongName utility for signing and verifying IL assemblies.
+
+- Generate a new StrongNaming key:
+
+`sn -k {{path/to/key.snk}}`
+
+- Re-sign an assembly with the specified private key:
+
+`sn -R {{path/to/assembly.dll}} {{path/to/keypair.snk}}`
+
+- Show the public key of the private key that was used to sign an assembly:
+
+`sn -T {{path/to/assembly.exe}}`
+
+- Extract the public key to a file:
+
+`sn -e {{path/to/assembly.dll}} {{path/to/output.pub}}`