Strong Name for VB COM dll

  • Thread starter Thread starter Abhinav Shrivastava
  • Start date 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.?
 
Hi,

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