Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard versioning - auto increment #361

Open
dwbeva opened this issue Oct 8, 2023 · 1 comment
Open

Wildcard versioning - auto increment #361

dwbeva opened this issue Oct 8, 2023 · 1 comment

Comments

@dwbeva
Copy link

dwbeva commented Oct 8, 2023

When using the wildcard versioning (for ex 1.0.0.*), is there a way to make it so the wildcard is generated sequentially?
That is, it would be 1.0.0.0 on the first build, then 1.0.0.1, then 1.0.0.2 ...

@Qukicelyn
Copy link

You should use ADO build variables for this. The Counters expression works great for this. Create one that stores a counter against the non-sub number e.g. 1.0.0 and you will then simply need to pass e.g. 1.0.0.$(IncrementableNumber) into the AssemblyInfoTask.

Wildcard versioning is presumably to support specific MSBuild behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants