SemanticVersion.IncrementMode Class

Summary

Controls how version incrementing is applied.
Assembly
GitVersion.Core.dll
Namespace
GitVersion
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["SemanticVersion.IncrementMode"] class Type type-node

Syntax

public sealed class SemanticVersion.IncrementMode : Enum

Attributes

Type Description
NullableContextAttribute

Fields

Name Constant Value Summary
EnsureIntegrity 2
Ensures the resulting version is strictly greater than the current one without forcing an unnecessary bump.
static
Force 1
Always bumps the version field regardless of whether a pre-release tag is present.
static
Standard 0
Increments the pre-release number when already on a pre-release, otherwise bumps the field.
static
value__

Extension Methods

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