- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
- Interfaces
-
- IFormattable
- IComparable
<SemanticVersion> - IEquatable
<SemanticVersion>
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IFormattable"]
Type-.->Interface1["IComparable<SemanticVersion>"]
Type-.->Interface2["IEquatable<SemanticVersion>"]
Type["SemanticVersion"]
class Type type-node
Syntax
public class SemanticVersion : IFormattable, IComparable<SemanticVersion>,
IEquatable<SemanticVersion>
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Constructors
Fields
| Name | Constant Value | Summary |
|---|---|---|
| BuildMetaData | ||
| Major | ||
| Minor | ||
| Patch | ||
| PreReleaseTag |
Methods
| Name | Value | Summary |
|---|---|---|
| CompareTo |
int | |
| CompareTo |
int | |
| Equals |
bool | |
| Equals |
bool | |
| GetHashCode |
int | |
| IncrementVersion |
SemanticVersion | |
| IsEmpty |
bool | |
| Parse |
SemanticVersion |
static
|
| ToString |
string | |
| ToString |
string |
s - Default SemVer [1.2.3-beta.4] f - Full SemVer [1.2.3-beta.4+5] i - Informational SemVer [1.2.3-beta.4+5.Branch.main.BranchType.main.Sha.000000] j - Just the SemVer part [1.2.3] t - SemVer with the tag [1.2.3-beta.4] l - Legacy SemVer tag for systems which do not support SemVer 2.0 properly [1.2.3-beta4] lp - Legacy SemVer tag for systems which do not support SemVer 2.0 properly (padded) [1.2.3-beta0004] |
| ToString |
string | |
| TryParse |
bool |
static
|
Operators
| Name | Value | Summary |
|---|---|---|
| operator != |
bool | |
| operator |
bool | |
| operator |
bool | |
| operator == |
bool | |
| operator > |
bool | |
| operator > |
bool |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Get |
string | |
| GetAssemblyVersion |
string | |
| GetProperties |
IEnumerable |
From ObjectExtensions
|
| NotNull |
T |
From CommonExtensions
|