Skip to content

Commit 9890504

Browse files
committed
Fix build-configuration.ps1
1 parent 5f0cd50 commit 9890504

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/build-configuration.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,18 @@ Task Resolve-Projects -depends Load-Powershell-Dependencies,Determine-Version-Su
5454

5555
[xml] $projectObject = Get-Content $projectXmlPath
5656

57+
$dashedVersionSuffix = "";
58+
59+
if ($dashedVersionSuffix -ne "")
60+
{
61+
$dashedVersionSuffix = "-$script:versionSuffix";
62+
}
5763

5864
$project = New-Object –TypeName PSObject –Prop @{
5965
Name = $name
6066
Path = $path
6167
ProjectXmlPath = $projectXmlPath
62-
SemanticVersion = [NuGet.SemanticVersion]::new($(Select-Xml "/Project/PropertyGroup/VersionPrefix/text()" $projectObject).ToString() + "-$script:versionSuffix")
68+
SemanticVersion = [NuGet.SemanticVersion]::new($(Select-Xml "/Project/PropertyGroup/VersionPrefix/text()" $projectObject).ToString() + $dashedVersionSuffix)
6369
NuGetPath = "$nuGetDir\$name"
6470
NuGetPackageName = $name
6571
SkipPackaging = $name.StartsWith("System.Data.HashFunction.Test")

0 commit comments

Comments
 (0)