Search code examples
gitdlllabelteamcityfileversioninfo

How to write TeamCity build counter into FILE_VERSION_INFO of dll


We have a project in git repository which is built by TeamCity into mylib.dll

There is a build counter in TeamCity and we would like to label the commit being build with this counter and also to set this counter/label as FILE_VERSION_INFO in mylib.dll (right click -> Properties -> Details).

Is there any feature in TeamCity do it? We checked the meta-runner-power-pack, but we didn't find any tool how to do this.


Solution

  • To label sources of a particular build you can use VCS Labeling build feature. There is AssemblyInfo Patcher feature in TeamCity which allows to add Assembly version.