My bottom lien question is this: Is it preferable to reference the
Interop.XXX.dll you make with tlbimp, or to reference the COM DLL and let it
handle the Interop.XXX.dll?

Signature
JD
Developer
> If you reference the COM component, Visual studio will automagically creates
> the interop assembly. It will do so by either invoking tlbimp or aximp for
[quoted text clipped - 25 lines]
> > (I apologize for having posted this in microsfot.public.dotnnet.general
> > before finding this more appropriate newsgroup)
Christian Fröschlin - 05 Mar 2008 08:56 GMT
> My bottom lien question is this: Is it preferable to reference the
> Interop.XXX.dll you make with tlbimp, or to reference the COM DLL and let it
> handle the Interop.XXX.dll?
There is probably no general answer to this. If the COM DLL is your
own product, it could be worthwile to manually deliver an official
*primary* interop assembly. Otherwise, why not let Visual Studio
know that you are actually depending on a COM DLL, it will then
rebuild the Interop as required and show you a broken
reference if the COM dll is not installed properly.
Adam - 30 Mar 2008 07:03 GMT
JD,
There actually is a good answer to this. But its not for performance or
anything to that degree.
Let's say you have a build machine that doesn't have the COM DLL available
for interop creation. You can manually create the interop assembly, place it
in your source tree as an external binary dependency, then your build machine
would be happy. It wouldn't be able to run the project (or at least not the
parts that use the COM object) but it will build it without issue.
I'm sure there are other similar scenarios.
Adam
> My bottom lien question is this: Is it preferable to reference the
> Interop.XXX.dll you make with tlbimp, or to reference the COM DLL and let it
[quoted text clipped - 29 lines]
> > > (I apologize for having posted this in microsfot.public.dotnnet.general
> > > before finding this more appropriate newsgroup)