Skip to content

Commit e7b619e

Browse files
committed
- Added verbose statement when using the BuildSystemsBuildId parameter.
1 parent 6d03c5d commit e7b619e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Set-ProjectFilesClickOnceVersion.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ foreach ($clickOncePropertyGroup in $clickOncePropertyGroups)
246246
# Use a calculation for the Build and Revision to prevent the Revision value from being too large, and to increment the Build value as the BuildSystemsBuildId continues to grow larger.
247247
$build = [int][Math]::Floor($BuildSystemsBuildId / $maxVersionPartValueAllowed)
248248
$revision = $BuildSystemsBuildId % $maxVersionPartValueAllowed
249+
250+
Write-Verbose "Translated BuildSystemsBuildId '$BuildSystemsBuildId' into Build.Revision '$build.$revision'."
249251
}
250252

251253
# Else if we should be incrementing the file's revision, or we don't have the revision yet, get the Revision from the project file.

Tests/RunTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Write-Host ("{0}. Use Build Id parameter..." -f ++$testNumber)
4949
$output = RunScriptWithParameters "-BuildSystemsBuildId 1234"
5050
if ($output -eq '1.2.0.1234') { Write-Host "Passed" } else { throw "Test $testNumber failed. Output was '$output'." }
5151

52-
Write-Host ("{0}. Use Build Id parameter greater than the max value to make sure build is set properly..." -f ++$testNumber)
53-
$output = RunScriptWithParameters "-BuildSystemsBuildId 123456"
52+
Write-Host ("{0}. Use Build Id parameter greater than the max value to make sure build is set properly. Should also see Verbose statemnt..." -f ++$testNumber)
53+
$output = RunScriptWithParameters "-BuildSystemsBuildId 123456 -Verbose"
5454
if ($output -eq '1.2.1.57921') { Write-Host "Passed" } else { throw "Test $testNumber failed. Output was '$output'." }
5555

5656
Write-Host ("{0}. Use IncrementProjectFilesRevision parameter..." -f ++$testNumber)

0 commit comments

Comments
 (0)