Easy ps script to just update the Umbraco version without having to do a full build

This commit is contained in:
Sebastiaan Janssen
2017-09-13 12:07:29 +02:00
parent 83f08538c2
commit 00b469b61b

18
build/setversion.ps1 Normal file
View File

@@ -0,0 +1,18 @@
# Usage: powershell .\setversion.ps1 7.6.8
# Or: powershell .\setversion 7.6.8-beta001
param (
[Parameter(Mandatory=$true)]
[string]
$version
)
# report
Write-Host "Setting Umbraco version to $version"
# import Umbraco Build PowerShell module - $pwd is ./build
$env:PSModulePath = "$pwd\Modules\;$env:PSModulePath"
Import-Module Umbraco.Build -Force -DisableNameChecking
# run commands
$version = Set-UmbracoVersion -Version $version