Browse Source

delete old package

pull/16183/head
selmankoc 3 years ago
parent
commit
7353cb3380
  1. 11
      nupkg/pack.ps1

11
nupkg/pack.ps1

@ -1,4 +1,6 @@
. ".\common.ps1"
# Delete existing nupkg files
del *.nupkg
# Rebuild all solutions
foreach($solution in $solutions) {
@ -7,9 +9,6 @@ foreach($solution in $solutions) {
dotnet restore
}
# Delete old packages
del *.nupkg
# Create all packages
$i = 0
$projectsCount = $projects.length
@ -23,8 +22,10 @@ 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"

Loading…
Cancel
Save