Summary
A bitmask that enables or disables individual version-discovery strategies.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.VersionCalculation - Base Types
-
- Enum
graph BT
Type-->Base0["Enum"]
Type["VersionStrategies"]
class Type type-node
Syntax
public sealed class VersionStrategies : Enum
Attributes
| Type | Description |
|---|---|
| FlagsAttribute |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Configured |
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
|
| value__ | ||
| VersionInBranchName | 32 |
Extracts the version embedded in the branch name.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|