Click to See Complete Forum and Search --> : Signing Assemblies


Stelios
03-28-2003, 09:20 AM
Does anyone know how to sign an interop assembly (i.e assembly that we only
have in binary form)
Thanks all in advance

Stelios

Michael Gautier
03-28-2003, 07:54 PM
There is a tool that comes with .NET call al.exe or assembly linker. You may
be able to accomplish the job with that.


"Stelios" <spanayi@avantisworld.com> wrote in message
news:3e84567d@tnews.web.devx.com...
> Does anyone know how to sign an interop assembly (i.e assembly that we
only
> have in binary form)
> Thanks all in advance
>
> Stelios
>
>

James
03-30-2003, 06:49 AM
"Stelios" <spanayi@avantisworld.com> wrote in message
news:3e84567d@tnews.web.devx.com...
> Does anyone know how to sign an interop assembly (i.e assembly that we
only
> have in binary form)
> Thanks all in advance
>
> Stelios
>
>

1) @ command Prompt in the folder where the dll is, create a key pair (keep
this for further use) if you don't already have one as below (MyName should
be replaced with whatever name you wish to call this key pair)

sn -k MyName.snk'

2) this adds the signature to the assembly which is created at the same
time. In other words this next command line creates the Interop dll with a
signature. @ command Prompt...

'tlbimp /keyfile:MyName.snk THECOM.dll'