Strong naming preBuilt assemblies

V

Vinay Kant

Hey all,

I had a problem, where i strong named my project and then i got the error:
Cannot emit assembly as referenced assembly is not strong named.

My referenced assembly is created by IKVM tool compiling Java bytecode into
..NET MSIL code. I have got one solution to strong name this dll:

1. Create Messages.il using ildasm Messaged.dll /out:Messages.il
2. Use the same key pair (used to strong name the project) to create back
the Messages.dll: ilasm Messages.il /dll key="D:\sn.key"

This worked for me, is there any better solution out there that i have
missed out.

Also, the relative path isn't working for me.
I am using this: <Assembly: AssemblyKeyFile("D:\sn.key")> instead of

<Assembly: AssemblyKeyFile("..\\..\\sn.key")>

Thanks for any help
Vinay Kant
 

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

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top