Strong Name for VB COM dll

  • Thread starter Abhinav Shrivastava
  • Start date
A

Abhinav Shrivastava

Hi,
I have a VB COM dll (lets name A) which references another VB COM
dll(lets name B).
I created an assembly for A dll named NETA.dll using tlbimp and then I
want to assign it a strong name and sign it and put it in GAC.
I generated key using sn utility named Akeyfile.sn
When I try to strong name it and sign it using VS.NET

[assembly: AssemblyTitle("NETA.dll")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("C:\\Akeyfile.sn")]
it returns me an error that
Assembly generation failed -- Referenced assembly 'NETA.dll' does not
have a strong name.

How am I supposed to strong name it and sign it?
And do I need to give strong name to Vb COM dll 'B' too? If yes then
how will I strong name both of them using VS.NET.?
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

You can instruct tlbimp.exe to sign the assembly in the first place by
specifying the /keyfile: option in the command line parameters.
 

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