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.?

Re: Strong Name for VB COM dll by Mattias

Mattias
Fri Apr 16 04:04:56 CDT 2004

Abhinav,

>How am I supposed to strong name it and sign it?

Run Tlbimp again, this time with the /keyfile option.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Re: Strong Name for VB COM dll by Dmitriy

Dmitriy
Fri Apr 16 04:25:45 CDT 2004

Hi,

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

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Abhinav Shrivastava" <brainstogether@yahoo.com> wrote in message
news:2b017b4a.0404152348.4cd1774@posting.google.com...
> 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.?