IncrementStrategy Class

Summary

Specifies which version component should be incremented when creating a release from a branch.
Assembly
GitVersion.Core.dll
Namespace
GitVersion
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["IncrementStrategy"] class Type type-node

Syntax

public sealed class IncrementStrategy : Enum

Fields

Name Constant Value Summary
Inherit 4
Inherit the increment strategy from the parent or source branch.
static
Major 1
Increment the major component.
static
Minor 2
Increment the minor component.
static
None 0
No automatic increment is applied.
static
Patch 3
Increment the patch component.
static
value__

Extension Methods

Name Value Summary
NotNull<IncrementStrategy>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.
ToVersionField() VersionField
Converts the IncrementStrategy to the equivalent VersionField.