Home All Groups Group Topic Archive Search About

Strong naming assemblies that aren't yours?

Author
7 Feb 2006 11:00 AM
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?

Author
7 Feb 2006 11:16 AM
Peter Gloor
<adrian.sn***@gmail.com> schrieb im Newsbeitrag
news:1139310013.578647.168710@g14g2000cwa.googlegroups.com...
>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
Author
7 Feb 2006 12:02 PM
adrian.snell
I have created a key pair with sn -k Key.snk

How do I 'associate' this with a dll?

Thanks
Author
7 Feb 2006 1:38 PM
Damien
adrian.sn***@gmail.com wrote:
> 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
Author
7 Feb 2006 12:44 PM
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

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
7 Feb 2006 12:51 PM
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.
Author
7 Feb 2006 1:40 PM
Nicole Calinoiu
If you don't know who wrote it, what makes you trust it enough to use it
from your application?


<adrian.sn***@gmail.com> wrote in message
Show quote
news:1139316676.781230.325270@f14g2000cwb.googlegroups.com...
>> 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.
>
Author
7 Feb 2006 1:53 PM
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.

AddThis Social Bookmark Button