Summary
Class for representing semantic versions.
- Namespace
- Cake
.Common - Interfaces
-
- IComparable
- IComparable
<SemVersion> - IEquatable
<SemVersion>
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IComparable"]
Type-.->Interface1["IComparable<SemVersion>"]
Type-.->Interface2["IEquatable<SemVersion>"]
Type["SemVersion"]
class Type type-node
Syntax
public class SemVersion : IComparable, IComparable<SemVersion>, IEquatable<SemVersion>
Constructors
Name | Summary |
---|---|
SemVersion |
Initializes a new instance of the SemVersion class.
|
SemVersion |
Initializes a new instance of the SemVersion class.
|
Fields
Name | Constant Value | Summary |
---|---|---|
SemVerRegex |
Regex property for parsing a semantic version number.
static
|
Properties
Name | Value | Summary |
---|---|---|
AssemblyVersion | Version |
Gets the AssemblyVersion of the semantic version.
|
HasMeta | bool |
Gets a value indicating whether semantic version has meta or not.
|
IsPreRelease | bool |
Gets a value indicating whether semantic version is a prerelease or not.
|
Major | int |
Gets the major number of the version.
|
Meta | string |
Gets the meta of the version.
|
Minor | int |
Gets the minor number of the version.
|
Patch | int |
Gets the patch number of the version.
|
PreRelease | string |
Gets the prerelease of the version.
|
VersionString | string |
Gets the VersionString of the semantic version.
|
Zero | SemVersion |
Gets the default version of a SemanticVersion.
static
|
Methods
Name | Value | Summary |
---|---|---|
CompareTo |
int |
Compares to SemVersion objects to and another.
|
CompareTo |
int |
Compares to SemVersion objects to and another.
|
Equals |
bool |
Equals-method for the SemVersion class.
|
Equals |
bool |
Checks if two SemVersion objects are equal.
|
GetHashCode |
int |
Method for getting the hashcode of the SemVersion object.
|
ToString |
string |
Returns the string representation of an SemVersion object.
|
TryParse |
bool |
Method which tries to parse a semantic version string.
static
|
Operators
Name | Value | Summary |
---|---|---|
operator > |
bool |
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|