何时使用构建工具? [英] When to use a build tool?

查看:65
本文介绍了何时使用构建工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个初学者的问题,请忍受:我只是想知道在什么情况下应该使用诸如nant或msbuild之类的构建工具?我正在开发一个中型应用程序(.net 3.0),每个开发人员都在做他的工作,并在他的计算机上构建,并检查他在运行时对存储库中代码的更改。完成所有步骤后,我将从存储库中获取所有代码,在计算机上进行干净的构建,然后部署二进制文件。出于好奇,构建工具从何而来?

A beginner question, bear with me: I'm just wondering under what circumstances one should use a build tool like nant or msbuild? I'm working on a medium sized application (.net 3.0), every developer is doing his work and builds on his machine checking his code changes into the repository as he goes. Once we're all done, I'll get all the code from the repository, make a clean build on my machine and we deploy the binaries. Just out of curiosity, where comes the build tool in?

推荐答案

简短的回答总是。

每个开发人员应在签入代码之前使用构建脚本进行构建。构建发行版的人员应使用构建脚本来构建发行版。您的buildbot应该使用build脚本来构建和测试已签入的代码。

Each developer should be building using the build script before checking code in. The people building the release should be using the build script to build the release. Your buildbots should be using the build script to build and test the code that's been checked in.

这样做可以使所有开发人员,测试人员和buildbot具有一致的,可重复的建立。毕竟, F5密钥不是构建过程

Doing this allows all the developers, testers and buildbots to have a consistent, repeatable build. After all, The F5 Key Is Not a Build Process.

这篇关于何时使用构建工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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