Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogard committed Nov 9, 2017
1 parent 0b892d3 commit e1b9716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion default.ps1
Expand Up @@ -29,6 +29,7 @@ task compile -depends clean {
$suffix = @{ $true = ""; $false = "ci-$revision"}[$tag -ne $NULL -and $revision -ne "local"]
$commitHash = $(git rev-parse --short HEAD)
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
$versionSuffix = @{ $true = "--version-suffix=$($suffix)"; $false = ""}[$suffix -ne ""]

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

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

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

task benchmark {
Expand Down

0 comments on commit e1b9716

Please sign in to comment.