Reputation: 3036
I have been playing with a pipeline but still haven't found a way to make dotnet pack in Azure DevOps create version "2021.10.22-alpha.1" (template is YYYY.MM.DD-alpha.Rev) for my library. I wasn't able to find a way to specify "alpha" at anywhere (yes, I tried everything).
Upvotes: 0
Views: 231
Reputation: 3036
I've finally found it.
off
so no Version is passed
to MSBuild. Otherwise it'd ignore any suffixes or prefixesVersionSuffix=foo;VersionPrefix=$(Build.BuildNumber)
Now my package version is "2021.10.22.8-foo". It's still not ideal but I'm on the right way.
Upvotes: 1