Assembly Version Labeller

Provides a valid System.Version label for your .NET assemblies that could be used to set the AssemblyVersionAttribute(). It increments the build number on every successful integration and uses the CruiseControl.NET change number, provided by source control systems like Subversion, for the revision number component.

Version

Available from version 1.4.4

Examples

Minimalist Example

1<labeller type="assemblyVersionLabeller" />

Full Example (build number and revision number component are incremented automatically)

1<labeller type="assemblyVersionLabeller">
2  <major>1</major>
3  <minor>2</minor>
4  <incrementOnFailure>false</incrementOnFailure>
5</labeller>

Full Example (all properties)

1<labeller type="assemblyVersionLabeller">
2  <major>1</major>
3  <minor>2</minor>
4  <build>250</build>
5  <revision>1765</revision>
6  <incrementOnFailure>false</incrementOnFailure>
7</labeller>

Configuration Elements

Element Description Type Required Default Version
build Build number component of the version. If not specified the build number is incremented on every successful integration. Int32 No -1 1.4.4
buildLabelFormat A format applied to the build part of the buildnumber. String No 0 144
dynamicValues The dynamic values to use for the labeller. Dynamic Values array No None 144
incrementOnFailure Whether to increase the build number component if the integration fails. By default the build number component will only increase if the integration was successful. Boolean No false 1.4.4
major Major number component of the version. Int32 No 0 1.4.4
majorLabelFormat A format applied to the major part of the buildnumber. String No 0 144
minor Minor number component of the version. Int32 No 0 1.4.4
minorLabelFormat A format applied to the minor part of the buildnumber. String No 0 144
revision Revision number component of the version. If not specified the revision number is the LastChangeNumber, provided by some VCS (e.g. the svn revision with the Subversion task). Int32 No -1 1.4.4
revisionLabelFormat A format applied to the revision part of the buildnumber. String No 0 144

Automatically Generated

Documentation generated on Monday, 26 May 2014 at 7:18:00 AM