Build Version and Dll Version in Team City

I want to have these Versions in the format

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

how to set it in the assembly information patcher in the city of the team?

so that it automatically increments versions for every time it builds ...

I need some guidance and help with this ...?!?

+8
.net-assembly dll versioning teamcity
source share
4 answers

TeamCity may contain version assemblies for you using the AssemblyInfo Patcher assembly function. To take advantage of this:

  • Create an assembly parameter named %Major.Minor% . Set it manually for some value, for example. 1.0 .
  • On the General Settings tab, set the Build number format to %Major.Minor%.%build.vcs.number%.%build.counter% .
  • On the Build Steps tab, go to additional build features at the bottom of the page. Add assembly. The default will be %system.build.number% , which you defined in step 2.

This will cause all your builds to be versioned using %system.build.number% , which includes the major and minor versions, the VCS version, and the TeamCity build extension.

+29
source share

Using Paul Build's File Content Replacer build function, we ended up completing the following versioning scheme in our project:

http://www.meadow.se/wordpress/generating-semantic-version-build-numbers-in-teamcity/

A little harder to tune, but we are pleased with the results.

/ Emil

+1
source share

Regarding the question from Emil G about saving the first version numbers from AssemblyInfo, this is currently not possible: https://youtrack.jetbrains.com/issue/TW-20475

It would be nice, however.

/ Emil Γ…

0
source share

Now it is possible to do this through the Replacer File Content Replacer (available with TeamCity 9.1): https://confluence.jetbrains.com/display/TCD9/File+Content+Replacer

0
source share

All Articles