Skip to content

Enhancement? : Don't reinstall existing Umbraco Template (check the installed version matches the (forced) version) #42

Open
@mistyn8

Description

@mistyn8

Thinking something like this?

# Ensure we have the version specific Umbraco templates
$templateList = dotnet new uninstall | Out-String
$packageVersion = $templateList | Select-String '(?s)Umbraco.Templates.*Version: (.*?)\r\n'| Select-Object -expand Matches | Select-Object -expand Groups | Select-Object -ExpandProperty Value -Skip 1 -First 1
if ($packageVersion -ne $version)
{
    dotnet new install Umbraco.Templates::$version --force 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions