DEV Community

Discussion on: Azure DevOps YAML build for Mono Repository with multiple projects

Collapse
 
davidjonsson1 profile image
David Jonsson • Edited

Thanks for sharing!

How did you manage versioning for each service?

I'm currently using "version\version.txt" with in each service Subfolder.
That file is edited by the Product Owner who owns "major.minor."
The build adds the 3rd position "build" as a counter that resets to 0 (for any change to version.txt)

Thoughts?

Collapse
 
nikolicbojan profile image
Bojan Nikolić

Hi David,
We had version.txt for .NET Framework projects, but for Core we kept version in csproj files. I didn't like the option with the file, but it was "if it works...".
Since you have a non-tech person deciding on the version, maybe it would be good to move those values in some variables in Azure DevOps, so that it more PO-friendly :)
Ideally, you would use some simple option for versioning like github.com/adamralph/minver that could help if you see versioning as a pain point that just drains your time.

Collapse
 
nikolicbojan profile image
Bojan Nikolić

Oh, just one more option for versioning, similar to MinVer - Nerdbank.GitVersioning and a nice article bu Damien damienbod.com/2020/04/20/add-git-t...