VersionStrategies Enum

Summary

A bitmask that enables or disables individual version-discovery strategies.
Namespace
GitVersion.VersionCalculation
Interfaces
  • IComparable
  • ISpanFormattable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["ISpanFormattable"] Type-.->Interface2["IFormattable"] Type-.->Interface3["IConvertible"] Type["VersionStrategies"] class Type type-node

Syntax

[Flags]
public enum VersionStrategies

Attributes

Type Description
Flags

Fields

Name Constant Value Summary
ConfiguredNextVersion 2
Uses the next-version value from the configuration file.
static
Fallback 1
Uses a fallback version (typically 0.1.0) when no other strategy finds a version.
static
Mainline 64
Uses the mainline development strategy to calculate the version from the commit graph.
static
MergeMessage 4
Extracts the version from merge commit messages.
static
None 0
No strategies are enabled.
static
TaggedCommit 8
Uses the most recent version tag reachable from the current commit.
static
TrackReleaseBranches 16
Tracks the version from related release branches.
static
VersionInBranchName 32
Extracts the version embedded in the branch name.
static
GitHub