Reputation: 10482
I am new to TeamCity and I have just installed it and set it up with subversion. I would like the TeamCity build number to be put in the output files, so that my Application.exe has the same build number.
How can I do this?
Upvotes: 8
Views: 7726
Reputation: 6973
I run a powershell script after getting the sources from svn and before the build starts.
More or less like so.
http://jake.murzy.com/post/3099699807/how-to-update-assembly-version-numbers-with-teamcity
Upvotes: 1
Reputation: 6681
There is now an assemblyinfo patcher built into teamcity. They call it a build feature: http://confluence.jetbrains.net/display/TCD65/AssemblyInfo+Patcher
Use that with the parameters mention or make your own e.g.: 1.2.%build.vcs.number%.1
Upvotes: 11
Reputation: 46663
try this:
This is using Team City with MSBuild. If you're using Nant try this:
Upvotes: 3