pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-29 15:40:38 +10:00
parent c88feda2bf
commit 6ef80eb4f7

View file

@ -49,6 +49,15 @@ steps:
$pattern = "\[assembly: $attribute\("".*""\)\]"
$versionReplaced = $false
$content = $content | % {
if ($_ -match $Pattern) {
$versionReplaced = $true
$_ = $_ -replace [regex]::Escape($Matches[0]),$versionAttribute
Write-Host " * Replaced $($Matches[0]) with $versionAttribute"
}
$_
}
return $content
}