I create a fully signed assembly with a certain key.
AssemblyInfo.cs looks like this:
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"..\..\key.file.here.snk")]
[assembly: AssemblyKeyName("")]
Then I do "sn -R assembly.dll otherkey.snk".
sn reports that assembly was resigned successfully.
However, if I output public key token before and after re-signing
(sn -T) it is the same.
If I extract binary public key from re-signed assembly (sn -e)
and from key.file.here.snk (sn -p), they are binary identical.
If I extract public key from otherkey.snk, it is different.
It looks like resigning did not occur - assembly is still signed
with the old key.
What am I doing wrong?
Ivan
gyurisc - 14 Feb 2005 22:14 GMT
Hello,
I do not think that resigning is possible at all. It does not sound secure
to me :-)
Cris
>I create a fully signed assembly with a certain key.
> AssemblyInfo.cs looks like this:
[quoted text clipped - 20 lines]
>
> Ivan