If you want to sign an assembly, you must have the source code, then you can sign it by creating .Net Module.

1. Create .NetModule
    CSC /out:<OutputModule.netmodule> /t:module <CodeFile.cs>

2. Create a Keypair
    SN -k <KeyPairFile.snk>

3. Link Keypair with the assembly using Assembly Linker 
  
 AL /out:<OutputAssembly.dll> <Module.netModule> /keyfile:<Keyfile.snk>

There is a much simpler and easy way to do this, even if you do not have the source code.

ILMerge  is the answer:-
                Command:- ILMerge <Input.dll> /keyfile:<myKey.snk> /out:<Output.dll>

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

# re: Signing an existing assembly

Download and use for signing DLL:
http://www.microsoft.com/downloads/details.aspx?familyid=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en

Command to sign: ilmerge weak.dll /keyfile:key.snk /out:strong.dll
3/14/2009 3:17 AM | habeeb

Post a comment





 

 

News

Employers
Soppa Group India
iSmart Panache Inc
R Systems Internationals Ltd
Technovate eSolutions Pvt Ltd
The contents of this blog are my personal opinion and do not represent in any way the view of my employer.
These postings are provided "AS IS" with no warranties, and confer no rights.

Google PR™ - Post your Page Rank with MyGooglePageRank.com

Archives

Post Categories

Image Galleries

Articles & Magazines

ASP.Net 2.0 Compilation

ASP.Net, Blogs I refer...

Atlas

Dost

Drivers and Software Download

Garhwal

Travel Domain

WSS and WebParts

Syndication: