scripts/Windows/install_gitversion.ps1
Write-Host "Installing GitVersion..." -ForegroundColor Cyan $gvPath = "$env:SYSTEMDRIVE\Tools\GitVersion" if(Test-Path $gvPath) { del $gvPath -Recurse -Force } $tempPath = "$env:USERPROFILE\GitVersion" nuget install gitversion.commandline -Version 5.1.1 -ExcludeVersion -OutputDirectory $tempPath [IO.Directory]::Move("$tempPath\gitversion.commandline\tools", $gvPath) del $tempPath -Recurse -Force Add-Path $gvPath Write-Host "GitVersion installed" -ForegroundColor Green |