Class SemVersionExtensions
Provides extension methods for SemVersion.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class SemVersionExtensions
Methods
View SourceToSemanticString(SemVersion)
Converts the semantic version to a properly formatted semantic version string.
Declaration
public static string ToSemanticString(this SemVersion semVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| SemVersion | semVersion | The semantic version. |
Returns
| Type | Description |
|---|---|
| string | The semantic version string with corrected formatting. |
ToSemanticStringWithoutBuild(SemVersion)
Converts the semantic version to a string without the build metadata.
Declaration
public static string ToSemanticStringWithoutBuild(this SemVersion semVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| SemVersion | semVersion | The semantic version. |
Returns
| Type | Description |
|---|---|
| string | The semantic version string without build metadata. |