Skip to content

Commit bb8ab67

Browse files
committed
Added version verbosity
1 parent a41588b commit bb8ab67

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Build/build.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Set the verbose preference
22
$VerbosePreference = 'Continue'
33

4+
Write-Verbose -Message "GITHUB_REF: $env:GITHUB_REF"
5+
Write-Verbose -Message "GITHUB_HEAD_REF: $env:GITHUB_HEAD_REF"
6+
Write-Verbose -Message "GITHUB_BASE_REF: $env:GITHUB_BASE_REF"
7+
48
# Download the System Center Visual Studio Authoring Extensions (VSAE)
59
$invokeWebRequestParams = @{
610
Uri = 'https://download.microsoft.com/download/4/4/6/446B60D0-4409-4F94-9433-D83B3746A792/VisualStudioAuthoringConsole_x64.msi'
@@ -47,6 +51,7 @@ foreach ( $solution in ( Get-ChildItem -Filter *.sln ) )
4751
$projectUserFile = Get-ChildItem -Path $projectFile.Directory -Filter *.mpproj.user
4852
$projectUserFileXml = [System.Xml.XmlDocument] ( $projectUserFile | Get-Content )
4953
$nextVersion = [System.Version]::new($projectUserFileXml.Project.PropertyGroup.DeploymentNextVersion)
54+
Write-Verbose -Message "Current Management Pack Version: $($nextVersion.ToString())"
5055

5156
# Break out the version components to make it easier to work with
5257
$nextVersionMajor = $nextVersion.Major
@@ -72,7 +77,7 @@ foreach ( $solution in ( Get-ChildItem -Filter *.sln ) )
7277

7378
# Create the new version
7479
$newVersion = [System.Version]::new($nextVersionMajor,$nextVersionMinor,$nextVersionBuild,$nextVersionRevision)
75-
Write-Verbose -Message "Management Pack Version: $($newVersion.ToString())"
80+
Write-Verbose -Message "New Management Pack Version: $($newVersion.ToString())"
7681

7782
# Set the next management pack version in the project file
7883
$projectFileXml = [System.Xml.XmlDocument] ( $projectFile | Get-Content )

0 commit comments

Comments
 (0)