Azure DevOps automatic versioning when it comes to feature branches
This is the way I'm doing my versioning right now variables: major: '1' minor: '1' revision: $[counter(variables['minor'], 1)] # This will get reset every time minor gets bumped. ${{ if eq( variables['Build.SourceBranchName'], 'master' ) }}: nugetVersion: '$(major).$(minor).$(revision)' ${{ else }}…