Summary
Holds the build metadata attached to a semantic version (commits-since-tag, branch, SHA, commit date, etc.).
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
- Interfaces
-
- IFormattable
- IEquatable
<Semantic Version >Build Meta Data
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IFormattable"]
Type-.->Interface1["IEquatable<SemanticVersionBuildMetaData>"]
Type["SemanticVersionBuildMetaData"]
class Type type-node
Syntax
public sealed class SemanticVersionBuildMetaData : IFormattable,
IEquatable<SemanticVersionBuildMetaData>
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Constructors
| Name | Summary |
|---|---|
| Semantic | Initializes a new empty build metadata instance. |
| Semantic | Initializes a new build metadata instance with all fields specified. |
| Semantic | Initializes a new build metadata instance as a copy of buildMetaData. |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Empty |
An empty build metadata instance with no fields set.
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Commit |
long |
Gets the number of non-ignored commits reachable from HEAD but not from the counting anchor.
|
| CommitCountSourceSha | string |
Gets the commit used as the anchor for counting, or null when counting all reachable history.
|
Methods
Operators
| Name | Value | Summary |
|---|---|---|
| implicit operator |
Semantic |
|
| implicit operator string |
string | |
| operator != |
bool | |
| operator == |
bool |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|