Retrieving the Umbraco Version

There are several ways to figure out which version of Umbraco a given Umbraco site is running.

Umbraco.Core.dll

For Umbraco 7 and higher, the File Properties dialog of Umbraco.Core.dll lists the Umbraco version:

umbraco7version.png

umbraco8version.png

However, older versions of Umbraco only show the Build version:

umbraco6version.png

To retrieve the actual Umbraco version of older Umbraco installations, you need to resort to Powershell:

[System.Reflection.Assembly]::LoadWithPartialName("Umbraco.Core.dll")
[Umbraco.Core.Configuration.UmbracoVersion]::Current
[Umbraco.Core.Configuration.UmbracoVersion]::Current.ToString()

Compare the source code of the UmbracoVersion class of Umbraco 6, Umbraco 7, and Umbraco 8.

Database

Umbraco 7 keeps track of the installed or upgraded versions in the table umbracoMigration:

id name createDate version
1 Umbraco 2017-05-11 15:45:57.410 7.6.1
2 Umbraco 2019-08-26 10:49:14.110 7.7.0
3 Umbraco 2019-08-26 13:56:57.727 7.15.2

web.config

Umbraco’s upgrade mechanism makes use of the <appSettings> to figure out whether a database upgrade is necessary. Depending on the version, the keys  umbracoConfigurationStatus (up to V7), or Umbraco.Core.ConfigurationStatus (V8) are used:

<add key="umbracoConfigurationStatus" value="7.7.0" />

<add key="Umbraco.Core.ConfigurationStatus" value="8.1.4" />


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: