VB6 Integration with MSBuild

前端 未结 2 916
庸人自扰
庸人自扰 2021-02-06 10:26

So this is a question for anyone who has had to integrate the building/compilation of legacy projects/code in a Team Build/MSBuild environment - specifically, Visual Basic 6 app

相关标签:
2条回答
  • 2021-02-06 11:12

    I am using Nant to build VB6 projects daily. This does resort using the Nant execute command to do the builds (we build 4 projects as part of one "solution").

    It also allows you to label versions in your source control repository, get latest code, check in, check out, all the normal requirements, compile the update/setup programs copy the files to required locations and send emails of the results.

    The logged results are fairly minimal though as you only get the output provided by a VB6 command line compile.

    For versioning, I had to write a small app to extract the version number of my compiled executable and write it to a text file that Nant could then read and use (for labels, file names etc. (A bit of a pain but VB generated version numbers don't comply anyway).

    For help with other non-core tasks see NAntContrib - from the NAnt link above.

    0 讨论(0)
  • 2021-02-06 11:14

    The VB6 task will be back on Monday. With regards to versioning, there is no explicit vb versioning task in the pack, however you could make use of the TfsVersion (TaskAction="GetVersion") and the File (TaskAction="Replace") tasks. If you think there is value in creating a new task to encapsulate / provide other functions, then please let me know and I will add it to the pack for the benefit of the whole community.

    Apologies for the withdrawal, but come Monday I'm sure all will understand.

    0 讨论(0)
提交回复
热议问题