I have two projects set up in CruiseControl.NET: CI build and nightly build.
Both of them execute the same NAnt script, but with different parameters.
The CruiseControl.NET label (currently generated by the DefaultLabeler) is embedded into AssemblyInfo as the build part of the version (for example, MajorVersion.MinorVersion.CCNET_Label.SVN_Revision).
For more consistent versioning I would like both projects to share the same CruiseControl.NET label value.
I have investigated the labelers that are available as part of the CruiseControl.NET installation, but I could not find one that does what I want.
How do I share a label value between multiple CruiseControl.NET builds?
If there is a better way to do this, I would like to know.
I found a way. See my answer below.
I could not find an existing solution that to do what I needed, so I ended up writing a custom CruiseControl.NET labeller.
Here's how it is done: