How I do a sign an assembly that has already been built into a dll specifically flute.dll

后端 未结 5 1087
故里飘歌
故里飘歌 2020-12-12 21:37

The reason I want to sign the dll is because I want to add it to the Global Assembly Cache. The assembly is a css parsing engine written in Java and ported to J#. I use VS20

5条回答
  •  萌比男神i
    2020-12-12 22:15

    After a little searching, I found this post that explains one way of doing it.

    Exerpt:

    From a VS.NET command prompt, enter the following:

    1. Generate a KeyFile: sn -k keyPair.snk
    2. Obtain the MSIL for the provided assembly: ildasm providedAssembly.dll /out:providedAssembly.il
    3. Rename/move the original assembly: ren providedAssembly.dll providedAssembly.dll.orig
    4. Create a new assembly from the MSIL output and your assembly KeyFile: ilasm providedAssembly.il /dll /key=keyPair.snk

提交回复
热议问题