When to use a build tool?

前端 未结 8 542
闹比i
闹比i 2021-02-04 16:07

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

8条回答
  •  庸人自扰
    2021-02-04 16:39

    Agreeing with and expanding on zacherates' answer ... Yes, you should always have some repeatable build process. While technically Visual Studio projects are MSBuild files, it's better to have the "official" build process be separate of the development environment.

    In my mind, this is true no matter how big (or small) the team is. I use NAnt and CruiseControl.NET at home, where all I tend to work on are scratch projects and experiments. At work, we use a similar setup, but a bit more structured in how the NAnt scripts are put together.

    It's definitely worth your time to look into it. It's not a cure-all, but it is a best practice for knowing exactly which build was released when, and what's in the wild. Being able to identify your compiled code is half the troubleshooting battle! :)

提交回复
热议问题