Assembly using COM Interop stubs can't be registered in the GAC

  • Thread starter Angelos Karantzalis
  • Start date
A

Angelos Karantzalis

I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]
 
C

Carlos J. Quintero [.NET MVP]

You can sign assemblies with the sn.exe command-line .NET utility.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
S

Sunny

I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]

Under VS.Net 2003, open the property pages of the project. In the
General tab there is wrapper key filename. Put there the path to your
keyfile. Then, when you add a reference, the IDE will create a signed
wrapper.

Cheers
Sunny
 
A

Angelos Karantzalis

Sunny, thank you very much for the reply. I would've used the properties
page for ever without ever noticing that :] it worked like a charm, thanks.

Cheers,
Angel
O:]


Sunny said:
I've built an Assembly to wrap around a COM component. However, I need to
add it to the GAC.

Upon trying to do that, I'm trying to give the assembly a strong name, which
fails because the com interop generated assembly it uses doesn't have a
strong name :?

Can I sign the interop assembly with some cmd-prompt tool ? or, is there
another way to achieve what i want ?

Cheers,
Angel
O:]

Under VS.Net 2003, open the property pages of the project. In the
General tab there is wrapper key filename. Put there the path to your
keyfile. Then, when you add a reference, the IDE will create a signed
wrapper.

Cheers
Sunny
 

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