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

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

问题描述

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

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

我知道 CodePlex 上的 FreeToDev msbuild 任务,但目前它们已被撤回.

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

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

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

解决方案

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

为退出道歉,但到星期一我相信大家都会明白的.

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.

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?

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

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

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..

解决方案

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天全站免登陆