How to set build number based on Subversion version number using CruiseControl.net

Possible Duplicate:
Use SVN Revision to Build Tags in CCNET

I am working on the installation process of CruiseControl.net and converting an Msbuild script to work with it. I would like our build number to reflect the revision number of Subversion. It seems that LastChangeLabeller should work, but everything I get is "unknown".

My ultimate goal is to format the build number with both the build number (incremented by 1) and the revision of subvariance. But now I would agree to a revision number.

Clarification: I am trying to update the build number of CruiseControl.Net. Not only version numbers in compiled results.

+5
source share
4 answers

I found a duplicate question. Use the svn version to build tags in ccnet . This led me to svnRevisionLabeller , available on Google Code

This seems like the best solution for me. I changed the code a bit because I wanted the version number of the subvariance to be the last number in the version number. major.minor.build.revision. This label defaults to major.minor.revision.build.

+4
source

The MSBuild Community Tasks project has a disruptive task to help you in this endeavor.

Tasks: http://msbuildtasks.tigris.org/servlets/ProjectDocumentList

, : http://weblogs.asp.net/pwelter34/archive/2006/03/31/441613.aspx

0

The SVN FAQ has an example on how to do this using GNU make. I am sure that it can be easily adapted.

0
source

If you want to change the assembly number in CC.Net, I believe that you want to use the labeller block - perhaps the last Change the sticker, although I did not use it myself.

0
source

All Articles