Using NAnt and Ivy to build a VB6 project

北战南征 提交于 2019-12-03 20:48:46

We keep project references in separate REF files next to our VBP files and we are using custom tool to "fix" VBPs during compile. Our build process is greatly inspired by this page (The Way We Work) and our REF files are direct rip-off of the structure he is describing.

From The Way We Work you can follow a link to L.J. Johnson's Take Control of Your Build Cycle for a utility that does the same "fix" without external files.

Basicly the fix has to use tlbinfo to extract LIBID from the executable (OCX/DLL) and completely replace the guid of the reference in the VBP file. Once this not so complicated procedure is used, it doesn't matter if you are using binary or project compatibility for your projects. Also, if doing full builds none of the previous OCX/DLL has to be registered.

MarkJ

Visual Build Pro is recommended in this answer. The other answers are worth a look too.

I have found the answer to this myself;

Instead of using Ivy to try to generate a list of dependencies for me on-demand, I thought I'd use the file-system to give me that same list, as Ivy has done it's job in resolving the dependencies for me, resulting in a 'lib' folder full of .dll files...

All I have done, is get a list of the .dll files within that lib folder, store them in a property (variable) and then cycle back through that same property registering/unregistering as need be.

Simple really..!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!