Possible Duplicate:
Use SVN Revision to label build in CCNET
I’m working through the process of installing CruiseControl.net and converting an Msbuild script to work with it. I’d like our build number to reflect the Subversion revision number. It appears as though the LastChangeLabeller should work, but all I get is ‘unknown’.
My ultimate goal is to format the build number with both a build number (incrementing by 1) and the subversion revision. But for now I’d settle for the revision number.
Clarification: I’m trying to get the CruiseControl.Net build number updated. Not just the version numbers in the compiled results.
I found a duplicate question. Use svn revision to label build in ccnet. This lead me to svnRevisionLabeller available on Google Code
This seems to be the best solution for me. I modified the code slightly because I wanted the subversion revision number to be last number in the version number. major.minor.build.revision. This labeller by default does major.minor.revision.build.