Putting TeamCity build numbers in the builds it creates

I am new to TeamCity and I just installed it and configured it using subversion. I would like the TeamCity build number to be placed in the output files, so that my Application.exe has the same build number.

How can i do this?

+8
teamcity
source share
3 answers

Now there is an assemblyinfo collector built into teamcity. They call this the build function: http://confluence.jetbrains.net/display/TCD65/AssemblyInfo+Patcher

Use this with parameters or make your own, for example: 1.2.% Build.vcs.number% .1

+11
source share

try the following:

This is using Team City with MSBuild. If you are using Nant, try this:

  • Retrieving TeamCity assembly number in AssemblyInfo file using Nant
+3
source share

I run the powershell script after getting sources from svn and before starting the build.

More or less like that.

http://jake.murzy.com/post/3099699807/how-to-update-assembly-version-numbers-with-teamcity

+1
source share

All Articles