Hello,

i've created a new labeller that always generated a valid assembly version.
It uses the "Last Change Number" from supported SCM's like subversion to
determine the revision and
it automaticly increments the build number.

Internally it uses the System.Version class to ensure a correct version
label.

The patch is available here:
http://jira.public.thoughtworks.org/browse/CCNET-1424

Example:

<labeller type="assemblyVersionLabeller">
    <major>$(majorVersion)</major>
    <minor>$(minorVersion)</minor>
    <incrementOnFailure>false</incrementOnFailure>
</labeller>

Its also possible to set every part of a version by hand:

<labeller type="assemblyVersionLabeller">
    <major>$(majorVersion)</major>
    <minor>$(minorVersion)</minor>
    <build>$(buildVersion)</build>
    <revision>$(revisionVersion)</revision>
</labeller>


Any feedback is appreciated.

Daniel

Reply via email to