Reputation: 90
We have an WPF application and we versioned it at as follows:
Major Minor Build Revision
1 0 1 35
So the complete version is: 1.0.1.35
.
We want to use TFS continuous integration/deployment and we want to preserve the consecutive number, i mean, the next version has to be 1.0.1.36
and so on.
But in the compilation steps we used a task to change all assembly version numbers:
The $(Buil.BuilID) value currently is 1459, so the new version number will be 1.0.1.1459
.
How can we continue our next version number (1.0.1.36
) and do it automatically?
Upvotes: 0
Views: 99
Reputation: 41545
You can install the Version number counter to use a variable and increment him in each build.
If you use Azure DevOps Server 2019 you can use this syntax (in a variable value):
$[ counter(variables['revision', 35]) ]
Then the variable will increment in each build.
Upvotes: 1