Tara Singh
Tara Singh

Reputation: 1841

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

Upvotes: 1

Views: 2533

Answers (1)

skolima
skolima

Reputation: 32684

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])

Upvotes: 2

Related Questions