param( [string]$suffix ) if ($suffix) { $suffix = "-$suffix" } $ver = [regex]::Match((Get-Content Build/Version.csproj), '([^<]+)<').Groups[1].Value git tag -a "v$ver$suffix" -m "$ver$suffix" git checkout master git push origin "v$ver$suffix" --force