how to strongly sign an assembly and then add external resource

  • Thread starter Thread starter Wiktor Zychla
  • Start date Start date
W

Wiktor Zychla

I have an assembly produced from *.il code. I sign it with a key file:

ilasm /dll /key=mykey.snk myfile.il

But if I then add an external resource (version info) to the library, the
main module refuses to run with an exception sauing that the strong name of
the module cannot be checked.

my question is: how then should I sign the assembly so I could also add
external resources to it?

Regards, Wiktor
 
Wiktor,
my question is: how then should I sign the assembly so I could also add
external resources to it?

Can't you include the resources at compile time with Ilasm's /resource
option?

If not, you can make a delay signed assembly (see the
AssemblyDelaySignAttribute), and then re-sign your assembly with
Sn.exe -R after you've added the resources.



Mattias
 
Back
Top