如何用CruiseControl.Net来进行持续化集成(2)

本文详细介绍了源代码的高效组织结构和版本控制的重要性,包括如何设置主干、分支,以及如何确保团队成员快速获取最新代码状态,避免版本混乱。

Step 1 Setting up Source Control

Most systems I've seen have a setup as below :

ProjectName
  \__Trunk
  |    \Lib
  |    \Src
  \__Branches
       \__1_0_0_3450
       |  \Lib
       |  \Src
       \__1_0_1_5678
          \Lib
          \Src

Trunk is the 'line' where you'll do your every day work. This has 2 main folders : Lib and Src.
Lib holds any assembly's you use in the code : 3rd party assemblies.
Src holds the actual source.

These folders may off course have sub-folders.

Sometimes there are other folders also, like Tools (also directly under Trunk)

When you place a reference, it must be to the lib folder, or to standard .Net runtime which resides in the Global Assembly Cache.

The benefits of this setup :
  • when a new developer joins the team, he only needs to get the latest situation from source control, and he can start. No hours lost finding the correct version of a tool or library.
  • when you need to do a fix on an older version, you'll have the correct versions of all 3rd party assemblies and tools.
 
比较常用的组织源代码的层次结构。




评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值