VB6与MSBuild集成 [英] VB6 Integration with MSBuild

查看:73
本文介绍了VB6与MSBuild集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,对于必须在Team Build/MSBuild环境中(尤其是Visual Basic 6应用程序/项目)集成遗留项目/代码的构建/编译的人来说,这是一个问题.

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 applications/projects.

在编写自定义构建任务之外(我不反对),有人对如何最佳地将旧版VB6项目的编译和版本集成到MSBuild构建中有任何建议吗?

Outside of writing a custom build Task (which I am not against) does anyone have any suggestions on how best to integrate compilation and versioning of legacy VB6 projects into MSBuild builds?

我在 CodePlex 上了解了FreeToDev msbuild任务,但目前已将其撤回

I'm aware of the FreeToDev msbuild tasks at CodePlex but they've been withdrawn at the moment.

理想情况下,我正在寻找版本和编译代码,以及捕获msbuild日志的编译输出(尤其是错误).

Ideally I'm looking to version and compile the code as well as capture the compilation output (especially errors) for the msbuild log.

我已经看到了有关在自定义任务中封装此功能的建议,但真的很想知道是否有人尝试了另一种解决方案(除了执行shell命令)- 本质上,有人有更清洁"的解决方案吗?

I've seen advice on encapsulating this functionality in a custom task, but really wondered if anyone has tried another solution (aside from executing shell commands) - In essence, does anyone have a "cleaner" solution?

理想情况下,使用命令执行命令将是最后的选择.

Ideally, executing commands using would be a last resort..

推荐答案

VB6任务将在周一返回.关于版本控制,包中没有明确的vb版本控制任务,但是您可以使用TfsVersion(TaskAction ="GetVersion")和File(TaskAction ="Replace")任务.如果您认为创建一个新任务来封装/提供其他功能很有价值,那么请告诉我,为了整个社区的利益,我将其添加到软件包中.

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.

这篇关于VB6与MSBuild集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆