Strong naming assemblies that aren't yours?

A

adrian.snell

I need to strong name my assemblies, however there are some that I
reference within those that aren't mine, and they all need to be strong
named for it to work. Is there anyway I can strongly name someone
else's assembly or is there away to get around this problem?
 
P

Peter Gloor

I need to strong name my assemblies, however there are some that I
reference within those that aren't mine, and they all need to be strong
named for it to work. Is there anyway I can strongly name someone
else's assembly or is there away to get around this problem?
You an sign assemblies with the Strong Name tool (sn.exe).

Peter
 
A

adrian.snell

I have created a key pair with sn -k Key.snk

How do I 'associate' this with a dll?

Thanks
 
M

Mattias Sjögren

Is there anyway I can strongly name someone
else's assembly or is there away to get around this problem?

Have you tried asking the assembly vendor for a strong named version?


Mattias
 
A

adrian.snell

Have you tried asking the assembly vendor for a strong named version?

Unfortunately this is not possible, as we are not sure where it came
from originally.
 
D

Damien

I have created a key pair with sn -k Key.snk

How do I 'associate' this with a dll?

Thanks

Hi Adrian,

I don't believe it to be possible without recompiling the DLL. I
believe that during compilation, extra space has to be allocated to
contain the public key, the signature, etc.

If you do not have the source available, you may be able to do this
just using ildasm and ilasm

HTH,

Damien
 
N

Nicole Calinoiu

If you don't know who wrote it, what makes you trust it enough to use it
from your application?
 
A

adrian.snell

Thanks a lot guys.
I dont think it is possible either, but have managed to find source
code for a very similar version so problem is solved.

Adrian.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top