Class UmbracoVersion
Represents the version of the executing code.
Inheritance
Namespace: Umbraco.Core.Configuration
Assembly: Umbraco.Core.dll
Syntax
public static class UmbracoVersion
Properties
View SourceAssemblyFileVersion
Gets the assembly file version of the Umbraco code.
Declaration
public static Version AssemblyFileVersion { get; }
Property Value
Type | Description |
---|---|
System.Version |
Remarks
The assembly version is the value of the System.Reflection.AssemblyFileVersionAttribute.
AssemblyVersion
Gets the assembly version of the Umbraco code.
Declaration
public static Version AssemblyVersion { get; }
Property Value
Type | Description |
---|---|
System.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 static string Comment { get; }
Property Value
Type | Description |
---|---|
System.String |
Current
Gets the non-semantic version of the Umbraco code.
Declaration
public static Version Current { get; }
Property Value
Type | Description |
---|---|
System.Version |
LocalVersion
Gets the "local" version of the site.
Declaration
public static SemVersion LocalVersion { get; }
Property Value
Type | Description |
---|---|
SemVersion |
Remarks
Three things have a version, really: the executing code, the database model, and the site/files. The database model version is entirely managed via migrations, and changes during an upgrade. The executing code version changes when new code is deployed. The site/files version changes during an upgrade.
SemanticVersion
Gets the semantic version of the Umbraco code.
Declaration
public static 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.