Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Azure DevOps Series
$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
You can’t perform that action at this time.