From 6ef80eb4f78666dd1d1386068bea3d4d901ca9e1 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 29 Dec 2022 15:40:38 +1000 Subject: [PATCH] pipeline file changes --- .../apply-semantic-versioning-to-assembyinfo-files.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml b/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml index b18624d5..23a562bb 100644 --- a/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml +++ b/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml @@ -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 }