Daniel's XL Toolbox NG
|
Class that handles semantic versioning. More...
Public Member Functions | |
SemanticVersion (string version) | |
Instantiates the class from a given version string. More... | |
SemanticVersion () | |
int | CompareTo (object obj) |
override bool | Equals (object obj) |
override string | ToString () |
Returns the full version string. More... | |
override int | GetHashCode () |
SemanticVersion (string version) | |
Instantiates the class from a given version string. More... | |
SemanticVersion () | |
int | CompareTo (object obj) |
override bool | Equals (object obj) |
override string | ToString () |
Returns the full version string. More... | |
override int | GetHashCode () |
Static Public Member Functions | |
static SemanticVersion | CurrentVersion () |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" on the root level of the current entry assembly. More... | |
static SemanticVersion | CurrentVersion (Assembly assembly) |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" that is built as an embedded resource. The first embedded "RESOURCE" file that is found in all the namespaces of assembly will be used. More... | |
static bool | operator< (SemanticVersion lower, SemanticVersion higher) |
static bool | operator> (SemanticVersion higher, SemanticVersion lower) |
static bool | operator<= (SemanticVersion lower, SemanticVersion higher) |
static bool | operator>= (SemanticVersion higher, SemanticVersion lower) |
static bool | operator== (SemanticVersion v1, SemanticVersion v2) |
static bool | operator!= (SemanticVersion v1, SemanticVersion v2) |
static SemanticVersion | CurrentVersion () |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" on the root level of the current entry assembly. More... | |
static SemanticVersion | CurrentVersion (Assembly assembly) |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" that is built as an embedded resource. The first embedded "RESOURCE" file that is found in all the namespaces of assembly will be used. More... | |
static bool | operator< (SemanticVersion lower, SemanticVersion higher) |
static bool | operator> (SemanticVersion higher, SemanticVersion lower) |
static bool | operator<= (SemanticVersion lower, SemanticVersion higher) |
static bool | operator>= (SemanticVersion higher, SemanticVersion lower) |
static bool | operator== (SemanticVersion v1, SemanticVersion v2) |
static bool | operator!= (SemanticVersion v1, SemanticVersion v2) |
Protected Member Functions | |
void | ParseString (string s) |
Parses a string that complies with semantic versioning, V. 2. More... | |
void | BuildString () |
void | ParseString (string s) |
Parses a string that complies with semantic versioning, V. 2. More... | |
void | BuildString () |
Properties | |
int | Major [get, set] |
int | Minor [get, set] |
int | Patch [get, set] |
Prerelease | Prerelease [get, set] |
int | PreMajor [get, set] |
int | PreMinor [get, set] |
int | PrePatch [get, set] |
string | Build [get, set] |
Class that handles semantic versioning.
|
inline |
Instantiates the class from a given version string.
version | String that complies with semantic versioning rules. |
|
inline |
|
inline |
Instantiates the class from a given version string.
version | String that complies with semantic versioning rules. |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inlinestatic |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" on the root level of the current entry assembly.
Note that this will throw an exception if called inside a VSTO addin.
|
inlinestatic |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" on the root level of the current entry assembly.
Note that this will throw an exception if called inside a VSTO addin.
|
inlinestatic |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" that is built as an embedded resource. The first embedded "RESOURCE" file that is found in all the namespaces of assembly will be used.
assembly | Assembly that contains the VERSION file. |
|
inlinestatic |
Factory method that creates an instance of the Version class with the current version information, which must be contained in a file called "VERSION" that is built as an embedded resource. The first embedded "RESOURCE" file that is found in all the namespaces of assembly will be used.
assembly | Assembly that contains the VERSION file. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlineprotected |
Parses a string that complies with semantic versioning, V. 2.
s | Semantic version string. |
|
inlineprotected |
Parses a string that complies with semantic versioning, V. 2.
s | Semantic version string. |
|
inline |
Returns the full version string.
|
inline |
Returns the full version string.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |