Registering for COM Interop

  • Thread starter Thread starter PGP
  • Start date Start date
P

PGP

I have an assembly i need to register for COM interop. This assembly has
other assembly dependencies that need not be visible to COM. Although, when
i turn on "Register for COM Interop" in the project setting for the target
assembly and compile, it gives me an error "COM Interop registration failed.
Could not find a type library for assembly <dependent assembly>"

Is there a way to not have the dependent assembly registered for COM
interop?

TIA
Priyesh
 
Are you using any Types from the dependent registry in the public
interface of the assembly you want to register? Try marking those
members (or whole classes) with [ComVisibile(false)]

Marc
 
Marc Gravell said:
Are you using any Types from the dependent registry in the public
interface of the assembly you want to register? Try marking those
members (or whole classes) with [ComVisibile(false)]

Marc

Marc,

I tested your suggestion with one of the dependencies and it works
correctly. Thanks for the information.

Regards
Priyesh
 

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

Back
Top