diff --git a/update-versions.ps1 b/update-versions.ps1 index e4b2f531..186e8f06 100644 --- a/update-versions.ps1 +++ b/update-versions.ps1 @@ -14,28 +14,14 @@ $installerReplaced="${installer}.replaced" echo "Replacing version in $assemblyInfo into $assemblyInfoReplaced" (Get-Content -Encoding UTF8 -path $assemblyInfo -Raw) -replace 'Version\("[0-9]*.[0-9]*.[0-9]*.0', "Version\(""${v}.0" | Set-Content -Encoding UTF8 -Path "$assemblyInfoReplaced" -NoNewline - -echo "echoing content of $assemblyInfoReplaced" -(Get-Content -Encoding UTF8 -path $assemblyInfoReplaced -Raw) - rm $assemblyInfo mv $assemblyInfoReplaced $assemblyInfo -echo "echoing content of $assemblyInfo" -(Get-Content -Encoding UTF8 -path $assemblyInfo -Raw) - echo "Replacing version in $installer into $installerReplaced" (Get-Content -Encoding UTF8 -path $installer -Raw) -replace '"ProductVersion" Value="[0-9]*\.[0-9]*\.[0-9]*"', """ProductVersion"" Value=""${v}""" | Set-Content -Path "${installer}.replaced" -Encoding UTF8 -NoNewline - -echo "echoing content of $installerReplaced" -(Get-Content -Encoding UTF8 -path $installerReplaced -Raw) - rm $installer mv $installerReplaced $installer -echo "echoing content of $installer" -(Get-Content -Encoding UTF8 -path $installer -Raw) - git status echo "==================================== update-versions.ps1 complete ====================================" \ No newline at end of file