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
Marc Gravell - 18 Jan 2008 21:02 GMT
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
PGP - 18 Jan 2008 21:27 GMT
> 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