每次构建主应用程序时都应该构建组件吗 [英] Should you build components every time you build a main app

查看:38
本文介绍了每次构建主应用程序时都应该构建组件吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经开始使用 Final Builder 为我们的 vb6 和 .net 项目创建构建.我们还使用 Visual Source Safe 来管理我们的源代码.我们的一些 vb6 exe 依赖于某些 ocx,因此特定的 vb6 exe 可能需要特定版本的 ocx.

We have started using Final Builder to create builds for our vb6 and .net projects. We are also using Visual Source Safe to manage our source. Some of our vb6 exe's are dependent on certain ocx's, such that a particular vb6 exe may require a particular version of an ocx.

问题是,我们的 exe 项目的最终构建器脚本是否也应该重新构建 ocx 项目,还是简单地拉取已编译的 ocx 的特定版本更好.我担心的是其他开发人员可能会破坏 ocx 的构建(或创建错误),然后可能会破坏我们正在尝试构建的 exe.此外,重新构建 ocx 项目会导致 ocx 的版本相同但日期不同,如果出现 dllhell(ocx hell) 问题,则会导致混淆.

The question is, should the final builder script for our exe project also re-build the ocx project, or is it better to simply pull a particular version of the already compiled ocx. My concern is that other developers could have broken the build (or created a bug) for the ocx which could then break the exe we are trying to build. Moreover, re-building the ocx project would result in the same version of the ocx but with a different date, resulting in confusion if dllhell(ocx hell) issues arise.

推荐答案

ocx 和 activex dll 在构建和维护应用程序方面没有区别.ocx 应该使用二进制兼容性并成为编译过程的一部分.

There is no difference in terms of building and maintaining your app between a ocx and a activex dll. The ocx should use binary compatibility and be part of your compile process.

然而,这是一般规则.您可能有一些很少更改的组件.在我自己的 VB6 应用程序中,我有一些组件位于我的参考层次结构的最底层,很少得到更新.它们最多可能一年更新一到两次.有些已经好几年没有更新了.

This is however a general rule. You may have some components that rarely change if ever. In my own VB6 application I have a handful of components that reside at the bottomost level of my reference hierarchy that rarely get updated. They maybe get updated one or twice a year at best. Some haven't been updated for several years now.

但是根据您的描述,听起来控件仍在修改中.所以我怀疑第二种情况是否适用.

However based on your description it sounds like the controls are still being modified. So I doubt the second case applies.

最后使用你最好的判断.

In the end use your best judgment.

这篇关于每次构建主应用程序时都应该构建组件吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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