Groups | Blog | Home
all groups > dotnet component services > december 2003 >

dotnet component services : How to add a strongname key to a assembly created with ilasm.exe(Intermediate Language) or to an already made DLL?


port_branco NO[at]SPAM hotmail.com
12/22/2003 10:47:00 PM
How can i accomplish this? I want to be able to put a DLL of mine in
the GAC(It must have a STRONG name) but the following command is not
working:
ilasm "my_il_file.il" /DLL

I already tried to:
ilasm "my_il_file.il" /DLL /KEY="key_file.txt"
but it still didn't work

Could anyone enlighten me please? There should be still another way,
for already made DLL's/EXE's to turn them as strong assemblies I
think...
Mattias Sjögren
12/23/2003 8:32:54 AM

[quoted text, click to view]

So what happened? Did ILASM give you an error? Is key_file.txt a valid
key pair file (they usually don't have a .txt extension)? What happens
if you run Sn.exe -Tp my_il_file.dll on the generated assembly (if you
got one)?



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button