开发者

Putting TeamCity build number into the assemblies it build

I am new to TeamCity an开发者_如何学God 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?


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


try this:

  • Team City - Update AssemblyInfo with current build number

This is using Team City with MSBuild. If you're using Nant try this:

  • Getting the TeamCity build number into the AssemblyInfo file using Nant


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜