TeamCity AssemblyInfo Patch Number Format

I had TeamCity + WiX + MSBuild work tasks. Now that I upgraded to WiX 3.5, I don’t remember how I configured it. :) As I pushed through TeamCity, I came across "AssemblyInfo Patcher". I thought: "Great! It will make my life easier!". I used %build.vcs.number.1% for the format and built my installer.

While the patcher did indeed enter the vcs number, he used it for the main version number. Therefore, instead of 1.0.0.xxxx he made the version xxxx.0.0.0 .

I looked at the JetBrain documentation site and did not come up with anything that could change it to a more appropriate setting. I also looked for regex support but didn't find anything.

Can someone suggest a good solution, or will I just go back to customizing my initial toolbox?

+7
source share
3 answers

The assembly information patcher only fixes the full version string immediately. But the build.number system variable can be generated from the "common" build configuration page, for example: General settings

When you specify% build.number% as the version of AssemblyInfo, it will collect the combo number on the general settings page. Assermbly info patcher

+11
source

Try including the full version number of the intended version as part of your format:

 1.0.0.%build.vcs.number.1% 
+2
source

Hmmm did not see AssemblyInfo Patcher, but you can do it manually using MsBuild and Regex:

http://jonalb.com/post/2010/10/04/Automatic-Versioning-using-TeamCity-an-MSBuild.aspx

-3
source

All Articles