Class UmbracoVersion
Represents the version of the executing code.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration
Assembly: Umbraco.Core.dll
Syntax
public class UmbracoVersion : IUmbracoVersion
Constructors
View SourceUmbracoVersion()
Declaration
public UmbracoVersion()
Properties
View SourceAssemblyFileVersion
Gets the assembly file version of the Umbraco code.
Declaration
public Version? AssemblyFileVersion { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Version> |
Remarks
The assembly version is the value of the System.Reflection.AssemblyFileVersionAttribute.
AssemblyVersion
Gets the assembly version of the Umbraco code.
Declaration
public Version? AssemblyVersion { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Version> |
Remarks
The assembly version is the value of the System.Reflection.AssemblyVersionAttribute.
Is the one that the CLR checks for compatibility. Therefore, it changes only on hard-breaking changes (for instance, on new major versions).
Comment
Gets the semantic version comments of the Umbraco code.
Declaration
public string Comment { get; }
Property Value
Type | Description |
---|---|
System.String |
SemanticVersion
Gets the semantic version of the Umbraco code.
Declaration
public SemVersion SemanticVersion { get; }
Property Value
Type | Description |
---|---|
SemVersion |
Remarks
The semantic version is the value of the System.Reflection.AssemblyInformationalVersionAttribute.
It is the full version of Umbraco, including comments.
Version
Gets the non-semantic version of the Umbraco code.
Declaration
public Version Version { get; }
Property Value
Type | Description |
---|---|
Version |