开发者

How to get the build number in Cruise Control .net ccnet.config file?

I can get the Build info from CCNetLabel, which is in format: major.minor.build.revision , 开发者_开发百科I am interested in getting the build number only, is there any variable which I can access to get the build number value?

I can do it by writing a tool, but I am interested in knowing if it is possible to get hold of any property in Cruise Control .net to get this value.

Thanks in Advance.

Tara Singh


A list of all CruiseControl.Net integration properties. There is no build number variable, you have to parse it yourself. For example, in NAnt you can use version::get-build() to split it, and in MSBuild 4.0 this should work:

$(CCNetLabel.Split('.')[2])
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜