diff --git a/build/build-all-release.ps1 b/build/build-all-release.ps1 index f54912d4f5..31aed989cd 100644 --- a/build/build-all-release.ps1 +++ b/build/build-all-release.ps1 @@ -5,7 +5,7 @@ foreach ($solutionPath in $solutionPaths) { $solutionAbsPath = (Join-Path $rootFolder $solutionPath) Set-Location $solutionAbsPath - dotnet build --configuration Release + dotnet build --configuration Release -- /maxcpucount if (-Not $?) { Write-Host ("Build failed for the solution: " + $solutionPath) Set-Location $rootFolder diff --git a/nupkg/pack.ps1 b/nupkg/pack.ps1 index fbe4a864ad..7723c93842 100644 --- a/nupkg/pack.ps1 +++ b/nupkg/pack.ps1 @@ -23,8 +23,8 @@ foreach($project in $projects) { # Create nuget pack Write-Info "[$i / $projectsCount] - Packing project: $projectName" Set-Location $projectFolder -# dotnet clean - dotnet pack -c Release /maxcpucount +# dotnet clean + dotnet pack -c Release --no-build if (-Not $?) { Write-Error "Packaging failed for the project: $projectName" diff --git a/nupkg/unit_test.ps1 b/nupkg/unit_test.ps1 index 07cdfe3655..f081dd1e2f 100644 --- a/nupkg/unit_test.ps1 +++ b/nupkg/unit_test.ps1 @@ -5,6 +5,4 @@ foreach($solution in $solutions) { $solutionFolder = Join-Path $rootFolder $solution Set-Location $solutionFolder dotnet test --no-build --logger trx - - }