Geeks With Blogs

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

Narendra Tiwari

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>

Posted on Friday, December 19, 2008 11:30 AM .Net | Back to top


Comments on this post: Signing an existing assembly

# re: Signing an existing assembly
Requesting Gravatar...
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
Left by habeeb on Mar 14, 2009 3:17 AM

Your comment:
 (will show your gravatar)


Copyright © Narendra Tiwari | Powered by: GeeksWithBlogs.net