Umbraco
What
Display current Umbraco Version if found inside the current working directory. The segment will only show based on the following logic
- The current folder contains the folder named umbraco
- Modern Umbraco (.NET Core)
- Check to see if current folder contains one or more .csproj files
- Open .csproj XML files and check to see if Umbraco is installed as a PackageReference
- Read the installed version
- Legacy Umbraco (.NET Framework)
- Check to see if the current folder contains a web.config
- Open the XML and look for AppSettings keys
- If umbraco is installed it has a setting called umbraco.core.configurationstatus OR umbracoConfigurationStatus
- Read the value inside this AppSetting to get its version
Sample Configuration
- json
- yaml
- toml
Template (info)
default template
{{ .Version }}
Properties
| Name | Type | Description |
|---|---|---|
.Modern | boolean | a boolean to determine if this is modern Umbraco V9+ using modern .NET or if it's legacy Umbraco using .NET Framework |
.Version | string | the version of umbraco found |