Skip to content

Commit ec52f6c

Browse files
authored
Merge branch 'main' into dkershaw10-doc-updates
2 parents 9eae33e + b88fdc0 commit ec52f6c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/ValidateProjectVersionUpdated.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ $packageName = "Microsoft.Graph.Bicep.Types"
1515
$csprojPath = Join-Path $PSScriptRoot "..\src\Microsoft.Graph.Bicep.Types\Microsoft.Graph.Bicep.Types.csproj"
1616

1717
[XML]$csprojFile = Get-Content $csprojPath
18-
$versionNode = Select-Xml $csprojFile -XPath "//Project/PropertyGroup/Version" | Select-Object -ExpandProperty Node
19-
$projectVersion = $versionNode.InnerText
18+
$versionPrefix = $csprojFile.Project.PropertyGroup.VersionPrefix
19+
$versionSuffix = $csprojFile.Project.PropertyGroup.VersionSuffix
20+
$projectVersion = "$versionPrefix-$versionSuffix"
2021

2122
# Cast the project version string to System.Version
2223
$currentProjectVersion = ConvertTo-SemVer -Version $projectVersion

0 commit comments

Comments
 (0)