VersionField Class

Summary

Identifies the position in a semantic version string that should be incremented.
Assembly
GitVersion.Core.dll
Namespace
GitVersion
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["VersionField"] class Type type-node

Syntax

public sealed class VersionField : Enum

Fields

Name Constant Value Summary
Major 3
Increment the major component (and reset minor and patch to zero).
static
Minor 2
Increment the minor component (and reset patch to zero).
static
None 0
No field is incremented; the pre-release number is bumped instead.
static
Patch 1
Increment the patch component.
static
value__

Extension Methods

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