| |

How to Sign DLL using Visual Studio Cmd

Hello Info Technicians.

In this blog we are going to know How to Sign DLL using Visual Studio Cmd

Sign DLL using Visual Studio Cmd

First open Developer Command Prompt for Visual Studio.

In my case it is “Developer Command Prompt for VS 2019” using in Windows Terminal. You can use the same as it is or use in Windows Terminal.

How to Sign DLL using Visual Studio Cmd

Make sure command sn and ildasm is working fine

sn command
ildasm command

Go to the path where your DLL is located. In my case it is “C:\DLL\”

DLL

Now create a Strong Name Key using sn command – “sn -k My.Library.snk

Key file creation

Disassable the library using this command – “ildasm My.Library.dll /out:My.Library.il

Disassemble the library

If you want backup of the original DLL make sure to copy that to some other folder. Otherwise it will be overwritten.

Now run this command to sign the DLL using the key we created in previous steps.

ilasm My.Library.il /dll /resource=My.Library.res /key=My.Library.snk

Signing using the key

It is done. You can see the date modified column to confirm this.

That’s it. It is a simple process to signing the DLLs.

Thank for reading. Please provide your feedback in comments.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *