Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto-update Project References

Status
Not open for further replies.

wallaceoc80

Programmer
Jul 7, 2004
182
GB
Hi, I have a VB6 project that contains a reference to a tlb from another .Net project that I have.

The problem is that whenever I rebuild the .Net project the reference in the VB6 project becomes out-of-date and I have to re-enter it. Is there any way that the project reference will automatically update to pick up the new .tlb file which will always be in the same location?

I hope this is explained properly.

Thanks,

Wallace
 
Hi Wallace,

I'm assuming that your .Net project exposes a GUID, which functions as the point of reference to your VB project. What you need to do is set up your .Net project so that it doesn't specify a new GUID when you recompile. The way that you do this in VB6 is to select binary compatibility from the project properties' Component tab.

I'm not completely sure how you would do this in .Net, but a quick google search for "binary compatibility .net" reveals that a .Net class can take a "GUID Attribute" which allows you to manually specify the GUID under which the class should be compiled. I would start there.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top