You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 of dotnet pack in build. Any help?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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