Replies: 2 comments
-
In mode |
Beta Was this translation helpful? Give feedback.
-
The problem here is that the base workflow Happy Branching! P.s. I don't typically analyze or support custom workflows, as this is very time-consuming and doesn't add value to the project. At this point, I'd like to invite you to sponsor me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I am struggling with GitVersion right now. I have this scenario.
I have a build which is generating a Nuget packages.
For main/master branch I want to use MajorMinorPatch versioning schema for these nugets
For feature or other branches I have to generate also proper version for nugets to not have conflicts.
For previous versions (we have updated GitVersion) there was NugetVersionV2 property which was totally good for me. Right now it is not existing
I would like to use "GitVersion.FullSemVer" property, to not complicate other developers (there are about 30 different repos for now that are using GitVersion) but by some reason, all the time I am getting PreReleaseNumber set to
1
which is also included in FullSemVer.I tried multiple different modes for each branch, but still I got PreReleaseNumber set to 1.
This is my configuration file (Yes now the mode its ManualDeployemtn, but I checked it with ContinuousDeployment and ContinuousDelivery as well but the same result)
I have a strategy
Mainline
to have a specific version on each commit, without this I still get the same version even if there is a new commit.This is how my output looks like:
So again,
for master/main build I could use GitVersion.MajorMinorPatch but this force me to add some
if-else
conditions in azure-pipeline.yaml. I would like to avoid this. Just always use a single property, but again, still PreReleaseNumber is set to 1 which is included in SemVer/FullSemVer which I would like to use in the step ofdotnet pack
in build. Any help?Beta Was this translation helpful? Give feedback.
All reactions