This is a cross-post from Stack Overflow.
I've enabled a "Build Feature" called "AssemblyInfo patcher" to tweak the version of DLLs generated by my TeamCity builds. I've remixed info from this other question and came up with this
Assembly version format
Now the final thing I would like to achieve is have the Major (
) and Minor (
) come from the original files, instead of hard coding them into TeamCity.
How can I do that?
I've guessed / tried:
But this gives an error. I've tried:
But this generates the
as major/minor instead of build and revision number, so e.g.
I've read the AssemblyInfo patcher documentation
but it doesn't explain much at all.
I've skimmed the available variables (with the icon to the right of the input field) but found no relevant variables.
How can I set up the "AssemblyInfo patcher" so that:
Major and Minor are kept as they are in the source files;
Revision is the VCS revision number;
Build is the TeamCity build number.
If it's possible at all?