Thursday, August 13, 2015

How to sign an unsigned assembly or DLL using Visual Studio Command Prompt

Open Visual Studio Command Prompt and type the following commands. Replace the text in square brackets according to your needs.

sn -k [KeyFileName].snk
ildasm  [DLLName].dll /out=[DLLName].il
ren [DLLName].dll [DLLName].dll.orig
ildasm [DLLName].il /dll /key=[KeyFileName].snk

The DLL file will be updated as a signed assembly which you can use in your project.

3 comments:

  1. Thank you! Our computer register must be in good condition to performance remained at a high level. In addition, the roster is littered with all sorts of bugs and braking system as a whole. I know how it works because I've faced with similar problem of http://fix4dll.com/mss32_dll file missing

    ReplyDelete
    Replies
    1. Thank you for your comment. The link http://fix4dll.com/mss32_dll is for some other purpose, i.e. to restore the missing DLL. Signing is something different. Most systems do not accept unsigned assemblies. I came across this issue when I tried to run a .Net console application and it complained about the unsigned DLL whose methods were used in the console application.

      Delete
  2. Woori Casino | Online casino games and promotions at
    Woori Casino 우리카지노 has vua nhà cái over 1600 slot 샌즈카지노 machines and casino games including jackpot slots, table games, live casino, roulette, baccarat, keno and more. Join now to claim

    ReplyDelete