0

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.

Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148

1 Answers1

1

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.

Alina Mishina
  • 3,320
  • 2
  • 22
  • 31
  • It looks nice. And it is something similar available Unix GCC project as well? – Tomas Kubes Oct 17 '14 at 12:34
  • This does not work in .NET Core. I found another approach for it: https://stackoverflow.com/questions/42293338/setting-net-core-library-assembly-file-nuget-package-version-at-build-time – Al Kepp Jun 11 '19 at 12:12