PageSourceSearch

https://ohmyposh.dev/assets/js/5b6eae35.8c69420f.js

js ohmyposh.dev collected 2026-09-24 18:50:20 UTC 4,381 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4871],{6396(e,n,i){i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>d,default:()=>m,frontMatter:()=>l,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"segments/cli/umbraco","title":"Umbraco","description":"What","source":"@site/docs/segments/cli/umbraco.mdx","sourceDirName":"segments/cli","slug":"/segments/cli/umbraco","permalink":"/docs/segments/cli/umbraco","draft":false,"unlisted":false,"editUrl":"https://github.com/jandedobbeleer/oh-my-posh/edit/main/website/docs/segments/cli/umbraco.mdx","tags":[],"version":"current","frontMatter":{"id":"umbraco","title":"Umbraco","sidebar_label":"Umbraco"},"sidebar":"docs","previous":{"title":"UI5 Tooling","permalink":"/docs/segments/cli/ui5tooling"},"next":{"title":"Unity","permalink":"/docs/segments/cli/unity"}}');var r=i(4848),s=i(8453),o=i(6674);const l={id:"umbraco",title:"Umbraco",sidebar_label:"Umbraco"},d=void 0,a={},c=[{value:"What",id:"what",level:2},{value:"Sample Configuration",id:"sample-configuration",level:2},{value:"Template (info)",id:"template-info",level:2},{value:"Properties",id:"properties",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"what",children:"What"}),"\n",(0,r.jsxs)(n.p,{children:["Display current ",(0,r.jsx)(n.a,{href:"https://umbraco.com/",children:"Umbraco"})," Version if found inside the current working directory.\nThe segment will only show based on the following logic"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"The current folder contains the folder named umbraco"}),"\n",(0,r.jsxs)(n.li,{children:["Modern Umbraco (.NET Core)","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Check to see if current folder contains one or more .csproj files"}),"\n",(0,r.jsx)(n.li,{children:"Open .csproj XML files and check to see if Umbraco is installed as a PackageReference"}),"\n",(0,r.jsx)(n.li,{children:"Read the installed version"}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["Legacy Umbraco (.NET Framework)","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Check to see if the current folder contains a web.config"}),"\n",(0,r.jsx)(n.li,{children:"Open the XML and look for AppSettings keys"}),"\n",(0,r.jsx)(n.li,{children:"If umbraco is installed it has a setting called umbraco.core.configurationstatus OR umbracoConfigurationStatus"}),"\n",(0,r.jsx)(n.li,{children:"Read the value inside this AppSetting to get its version"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"sample-configuration",children:"Sample Configuration"}),"\n","\n",(0,r.jsx)(o.A,{data:{type:"umbraco",background:"#ffffff",foreground:"#d886f1",style:"diamond",leading_diamond:"\ue0b6",trailing_diamond:"\ue0b4",template:"\udb81\udd49 {{ .Version }}",background_templates:["{{ if (.Modern) }}#3544B1{{ end }}","{{ if not (.Modern) }}#F79C37{{ end }}"]}}),"\n",(0,r.jsxs)(n.h2,{id:"template-info",children:["Template (",(0,r.jsx)(n.a,{href:"/docs/configuration/templates",children:"info"}),")"]}),"\n",(0,r.jsx)(n.admonition,{title:"default template",type:"note",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-template",children:"{{ .Version }}\n"})})}),"\n",(0,r.jsx)(n.h3,{id:"properties",children:"Properties"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Name"}),(0,r.jsx)(n.th,{children:"Type"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:".Modern"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"boolean"})}),(0,r.jsx)(n.td,{children:"a boolean to determine if this is modern Umbraco V9+ using modern .NET or if it's legacy Umbraco using .NET Framework"})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:".Version"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{children:"the version of umbraco found"})]})]})]})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.