1

I am using file content replacer Build Feature to change the AssemblyVersion and AssemblyFileVersion but I do not see any option to save the final version in TeamCity so that I can use it somewhere else down the build step.

Any pointers on how to achieve this is really appreciated.

George Alexandria
  • 2,841
  • 2
  • 16
  • 24
lbrahim
  • 3,710
  • 12
  • 57
  • 95
  • Look into artifact dependency. All the downstream projects, which depend on a given build, will get the compiled sources with that version. – hkarask Jul 14 '17 at 07:37

1 Answers1

1

I suggest you to define a build parameter that will hold the version. You can set it by concatenating a few other build parameters. For example define a parameter named "version.number" and set it to 1.0.%build.number%

Then you can use that parameter in both: build feature and in other build steps.

Boris Modylevsky
  • 3,029
  • 1
  • 26
  • 42