-
-
Save justinyoo/e4355510c15aa8a9c0c9339bfb05b415 to your computer and use it in GitHub Desktop.
Azure DevOps Series
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$BuildNumber = 10 | |
foreach ($project in $projects) | |
{ | |
$path = $project.FullName | |
$projectJson = Get-Content -Raw -Path $path\project.json | ConvertFrom-Json | |
$version = $projectJson.version -replace "\.0$", ".$BuildNumber" | |
$projectJson.version = $version | |
ConvertTo-Json $projectJson -Depth 999 | Out-File $path\project.json | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment