For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > August 2005 > Referencing COM components versioning problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Referencing COM components versioning problem
groups.google.com.josh@hidley.com

2005-08-25, 3:57 am

We have a C# project in VS.NET 2003 which references a COM DLL which we
created using VB6. This VB6 project uses binary compatibility. We
generated a primary interop assembly (PIA) for this COM DLL.

Here's the problem: If I add an interface to the VB6 project, and
compile a new DLL, the VB6 compiler increments the type library
version. I un-RegAsm the original PIA and I generate a new PIA from the
COM DLL without problems. Now if I open the VS.NET project, its
reference to the COM library is broken because VS.NET references the
COM library by its GUID and TypeLib version.

Is there any way to tell VS.NET to reference the COM library just by
GUID?

Thanks in advance for any help,

Josh

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com