Browse Source

Merge pull request #16137 from abpframework/skoc/pack-maxcpucount

Update pack.ps1
pull/16138/head
Alper Ebiçoğlu 3 years ago
committed by GitHub
parent
commit
650ffbb72b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      nupkg/pack.ps1

6
nupkg/pack.ps1

@ -23,8 +23,8 @@ foreach($project in $projects) {
# Create nuget pack # Create nuget pack
Write-Info "[$i / $projectsCount] - Packing project: $projectName" Write-Info "[$i / $projectsCount] - Packing project: $projectName"
Set-Location $projectFolder Set-Location $projectFolder
dotnet clean # dotnet clean
dotnet pack -c Release dotnet pack -c Release /maxcpucount
if (-Not $?) { if (-Not $?) {
Write-Error "Packaging failed for the project: $projectName" Write-Error "Packaging failed for the project: $projectName"
@ -40,4 +40,4 @@ foreach($project in $projects) {
} }
# Go back to the pack folder # Go back to the pack folder
Set-Location $packFolder Set-Location $packFolder

Loading…
Cancel
Save