From b6ae7e7a9ef73b48571db0f5b00b1d5b637cbf1f Mon Sep 17 00:00:00 2001 From: selmankoc Date: Tue, 4 Apr 2023 16:03:55 +0300 Subject: [PATCH 1/3] Create delete-bin-obj.ps1 --- delete-bin-obj.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 delete-bin-obj.ps1 diff --git a/delete-bin-obj.ps1 b/delete-bin-obj.ps1 new file mode 100644 index 0000000000..e26ba4fdce --- /dev/null +++ b/delete-bin-obj.ps1 @@ -0,0 +1,15 @@ +Clear-Host + +Write-Host "Deleting all BIN and OBJ folders..." -ForegroundColor Cyan + +Get-ChildItem -Path . -Include bin,obj -Recurse -Directory | ForEach-Object { + if ($_.FullName -notmatch "\\node_modules\\") { + Write-Host "Deleting:" $_.FullName -ForegroundColor Yellow + Remove-Item $_.FullName -Recurse -Force + } else { + Write-Host "Skipping:" $_.FullName -ForegroundColor Magenta + } +} + +Write-Host "BIN and OBJ folders have been successfully deleted." -ForegroundColor Green + From 141b4bb3ca21af0e8f7727bc455b31bdd20037be Mon Sep 17 00:00:00 2001 From: selmankoc Date: Tue, 4 Apr 2023 16:04:22 +0300 Subject: [PATCH 2/3] source-code sln --- build/common.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/common.ps1 b/build/common.ps1 index 61d9cf03d2..85f18edb21 100644 --- a/build/common.ps1 +++ b/build/common.ps1 @@ -36,7 +36,8 @@ if ($full -eq "-f") "../templates/console", "../templates/wpf", "../templates/app-nolayers/aspnet-core", - "../abp_io/AbpIoLocalization" + "../abp_io/AbpIoLocalization", + "../source-code" ) }else{ Write-host "" From 7353cb33801c5d67bd1976bb034df5f729fe2244 Mon Sep 17 00:00:00 2001 From: selmankoc Date: Tue, 4 Apr 2023 16:04:54 +0300 Subject: [PATCH 3/3] delete old package --- nupkg/pack.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nupkg/pack.ps1 b/nupkg/pack.ps1 index 0835ed790c..316f7d777f 100644 --- a/nupkg/pack.ps1 +++ b/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"