Skip to content

Commit e1b9716

Browse files
committed
Fixing build
1 parent 0b892d3 commit e1b9716

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

default.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ task compile -depends clean {
2929
$suffix = @{ $true = ""; $false = "ci-$revision"}[$tag -ne $NULL -and $revision -ne "local"]
3030
$commitHash = $(git rev-parse --short HEAD)
3131
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
32+
$versionSuffix = @{ $true = "--version-suffix=$($suffix)"; $false = ""}[$suffix -ne ""]
3233

3334
echo "build: Tag is $tag"
3435
echo "build: Package version suffix is $suffix"
@@ -43,7 +44,7 @@ task compile -depends clean {
4344

4445
exec { dotnet build $base_dir\AutoMapper.sln -c $config --version-suffix=$buildSuffix -v q /nologo }
4546

46-
exec { dotnet pack $source_dir\AutoMapper\AutoMapper.csproj -c $config --include-symbols --no-build --version-suffix=$suffix }
47+
exec { dotnet pack $source_dir\AutoMapper\AutoMapper.csproj -c $config --include-symbols --no-build $versionSuffix }
4748
}
4849

4950
task benchmark {

0 commit comments

Comments
 (0)