Class that handles semantic versioning.
More...
|
| | SemanticVersion (string version) |
| | Instantiates the class from a given version string. More...
|
| |
| | SemanticVersion (Assembly assembly) |
| | Creates an instance with the current version information, which must be contained in a file called "VERSION" that is built as an embedded resource. More...
|
| |
|
int | CompareTo (object obj) |
| |
|
override bool | Equals (object obj) |
| |
| override string | ToString () |
| | Returns the full version string. More...
|
| |
|
override int | GetHashCode () |
| |
|
| void | ParseString (string s) |
| | Parses a string that complies with semantic versioning, V. More...
|
| |
|
void | BuildString () |
| |
|
|
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.
Definition at line 44 of file SemanticVersion.cs.
| Bovender.Versioning.SemanticVersion.SemanticVersion |
( |
string |
version | ) |
|
|
inline |
Instantiates the class from a given version string.
- Parameters
-
| version | String that complies with semantic versioning rules. |
Definition at line 73 of file SemanticVersion.cs.
| Bovender.Versioning.SemanticVersion.SemanticVersion |
( |
Assembly |
assembly | ) |
|
|
inline |
Creates an instance 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.
- Parameters
-
| assembly | Assembly that contains the VERSION file. |
- Returns
- Instance of Version
Definition at line 87 of file SemanticVersion.cs.
| void Bovender.Versioning.SemanticVersion.ParseString |
( |
string |
s | ) |
|
|
inlineprotected |
Parses a string that complies with semantic versioning, V.
2.
- Parameters
-
| s | Semantic version string. |
Definition at line 291 of file SemanticVersion.cs.
| override string Bovender.Versioning.SemanticVersion.ToString |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: