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.
Make sure command sn and ildasm is working fine
Go to the path where your DLL is located. In my case it is “C:\DLL\”
Now create a Strong Name Key using sn command – “sn -k My.Library.snk“
Disassable the library using this command – “ildasm My.Library.dll /out:My.Library.il“
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“
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.