From 25cea2ea4cd7b936d5d5be80abda3abf7cd89f60 Mon Sep 17 00:00:00 2001 From: EngincanV Date: Thu, 15 Jan 2026 15:56:09 +0300 Subject: [PATCH] update to v10.1.0-rc.2 and create the rc-test pipeline --- common.props | 4 +-- nupkg/rc-tests/pack.ps1 | 55 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 nupkg/rc-tests/pack.ps1 diff --git a/common.props b/common.props index 96bd56ab0f..9df5767555 100644 --- a/common.props +++ b/common.props @@ -1,8 +1,8 @@ latest - 10.1.0-rc.1 - 5.1.0-rc.1 + 10.1.0-rc.2 + 5.1.0-rc.2 $(NoWarn);CS1591;CS0436 https://abp.io/assets/abp_nupkg.png https://abp.io/ diff --git a/nupkg/rc-tests/pack.ps1 b/nupkg/rc-tests/pack.ps1 new file mode 100644 index 0000000000..de59d33688 --- /dev/null +++ b/nupkg/rc-tests/pack.ps1 @@ -0,0 +1,55 @@ +. "..\common.ps1" + +$localPackagesFolder = "C:\Github\localpackages" + +# Delete existing nupkg files from local packages folder +if (Test-Path $localPackagesFolder) { + Remove-Item (Join-Path $localPackagesFolder "*.nupkg") -Force -ErrorAction SilentlyContinue +} + +# Rebuild all solutions +foreach ($solutionPath in $solutions) { + $solutionAbsPath = (Join-Path $rootFolder $solutionPath) + Set-Location $solutionAbsPath + dotnet build --configuration Release -- /maxcpucount + if (-Not $?) { + Write-Host ("Build failed for the solution: " + $solutionPath) + Set-Location $rootFolder + exit $LASTEXITCODE + } +} + +Set-Location $rootFolder + +# Create all packages +$i = 0 +$projectsCount = $projects.length +Write-Info "Running dotnet pack on $projectsCount projects..." + +# Ensure the local packages folder exists +if (-Not (Test-Path $localPackagesFolder)) { + New-Item -ItemType Directory -Path $localPackagesFolder -Force +} + +foreach($project in $projects) { + $i += 1 + $projectFolder = Join-Path $rootFolder $project + $projectName = ($project -split '/')[-1] + + # Create nuget pack + Write-Info "[$i / $projectsCount] - Packing project: $projectName" + Set-Location $projectFolder + + #dotnet clean + dotnet pack -c Release --no-build -o $localPackagesFolder -- /maxcpucount + + if (-Not $?) { + Write-Error "Packaging failed for the project: $projectName" + exit $LASTEXITCODE + } + + Seperator +} + +# Go back to the custom pack folder +Set-Location $localPackagesFolder