This page last changed on Dec 12, 2009 by csut017.

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
<labeller type="assemblyVersionLabeller" />
Full Example (build number and revision number component are incremented automatically)
<labeller type="assemblyVersionLabeller">
  <major>1</major>
  <minor>2</minor>
  <incrementOnFailure>false</incrementOnFailure>
</labeller>
Full Example (all properties)
<labeller type="assemblyVersionLabeller">
  <major>1</major>
  <minor>2</minor>
  <build>250</build>
  <revision>1765</revision>
  <incrementOnFailure>false</incrementOnFailure>
</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
dynamicValues The dynamic values to use for the labeller. Dynamic Values array No None 1.5
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
minor Minor number component of the version. Int32 No 0 1.4.4
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
Automatically Generated

Documentation generated on Saturday, 12 Dec 2009 at 6:45:02 AM

Document generated by Confluence on Jan 23, 2011 08:52