<version>

Increments a version number counter from a text file. The resulting version string is written back to the file and entered in a NAnt property defined by prefix + "version".

buildtype determines how the build number is generated:

revisiontype determines how the revision number is generated:

Parameters

Attribute Type Description Required
buildtype string Algorithm for generating build number. Valid values are "monthday", "increment" and "noincrement". The default is "monthday". False
path string Path to the file containing the current version number. The default file is 'build.number' in the project base directory. False
prefix string The string to prefix the property name with. The default is 'sys.'. False
revisiontype string Algorithm for generating revision number. Valid values are "automatic" and "increment". False
startDate string Start of project. Date from which to calculate build number. Required if "monthday" is used as buildtype. False
failonerror bool False
if bool False
unless bool False
verbose bool False