Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assembly Versioning and Dll Versioning in Team City

I want to have these Versions in a format

like this.. {Major}.{Minor}.{Build}.{patch}

how to set this in the assembly info patcher in team city?

so that it will automatically increment the versions for each time it builds...

i want some guidance and help in this...?!?

like image 776
sarathprasath Avatar asked Mar 06 '13 16:03

sarathprasath


1 Answers

TeamCity can version assemblies for you with the AssemblyInfo Patcher build feature. To take advantage of this:

  1. Create a build parameter called %Major.Minor%. Set this manually to some value, e.g. 1.0.
  2. On the General Settings tab, set the Build number format to %Major.Minor%.%build.vcs.number%.%build.counter%.
  3. On the Build Steps tabe, scroll to the Additional Build Features at the bottom of the page. Add an Assembly Info Patcher build step. It will default to using the %system.build.number%, which you've defined in step 2.

This will result in all of your assemblies being versioned with the %system.build.number%, which includes the Major and Minor version, the VCS revision, and TeamCity's incremental build number.

like image 184
John Hoerr Avatar answered Oct 07 '22 11:10

John Hoerr