title: Versioning Nuget Package with GitVersion.yml in Azure Devops
body: <p>I'm stucking with this for a whole week and I didn't reach where i wanted. 
  I'm thinking about having two branches:</p>
  
  <p>-<strong>master</strong></p>
  
  <p>-<strong>release</strong>(we are calling it <strong>vNext</strong> - the whole company knows it by this name)</p>
  
  <p>Master branch will generate the packages without prerelease tag.
  Release will generate the pre release version like: </p>
  
  <p>=><strong>master</strong> is on 1.0.0</p>
  
  <p>=>Create a <strong>vNext</strong>(release) branch like: <strong>vNext/1.1.0</strong></p>
  
  <p>=> Code things needed here and commit;</p>
  
  <p>=> Automatically my pipeline is triggered, because I've set the trigger to branch <strong>master</strong>, <strong>vNext</strong> or <strong>vNext/*</strong></p>
  
  <p>=> I want this to create a package like  (1.1.0-beta1)</p>
  
  <p>=>Create a pullRequest to <strong>master</strong></p>
  
  <p>=> Automatically my pipeline is triggered,</p>
  
  <p>=> I want this to create a package like  (1.1.0)</p>
  
  <p>This is my gitVersion.yml</p>
  
  <pre><code>next-version: 1.0
  mode: Mainline
  legacy-semver-padding: 0
  build-metadata-padding: 0
  commits-since-version-source-padding: 0
  assembly-versioning-scheme: MajorMinorPatch
  assembly-file-versioning-scheme: MajorMinorPatchTag
  assembly-informational-format: '{LegacySemVer}'
  branches:
    master:
      regex: master
      increment: Patch
      prevent-increment-of-merged-branch-version: true
      tag: ''
      track-merge-target: false
      tracks-release-branches: false
      is-release-branch: false
    release:
      regex: vNext?[/-]
      source-branches: ['master']
      increment: Patch
      prevent-increment-of-merged-branch-version: true
      tag: beta
      track-merge-target: false
      tracks-release-branches: false
      is-release-branch:  true
  
  
  </code></pre>
  
  <p>I can't get this working fine. To reach where I'm now, I've already googled a lot even here in stackoverflow, but couldn't found a solution that fits in the scenario I need.</p>
  
  <p><a href="https://i.stack.imgur.com/vCW13.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vCW13.png" alt="Builds"></a>
  <a href="https://i.stack.imgur.com/EpqVd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EpqVd.png" alt="vNext 1.1.1-beta1"></a>
  <a href="https://i.stack.imgur.com/efzn8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/efzn8.png" alt="Merge to Master"></a></p>
  
  <p>Also <a href="https://drive.google.com/open?id=1Cy-K3P4ajyUUvvtdt0oa5_NTp1FZ-UIF" rel="nofollow noreferrer">https://drive.google.com/open?id=1Cy-K3P4ajyUUvvtdt0oa5_NTp1FZ-UIF</a></p>
  
  <p>This are the logs from builds</p>