From c21d995878db24c30cf214aeaa2c438039e920cd Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Wed, 30 Oct 2019 16:35:15 +0300 Subject: [PATCH] Create build-all-release.ps1 --- build-all-release.ps1 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 build-all-release.ps1 diff --git a/build-all-release.ps1 b/build-all-release.ps1 new file mode 100644 index 0000000000..e6555f8d6b --- /dev/null +++ b/build-all-release.ps1 @@ -0,0 +1,40 @@ +# COMMON PATHS + +$rootFolder = (Get-Item -Path "./" -Verbose).FullName + +# List of solutions + +$solutionPaths = ( + "framework", + "modules/users", + "modules/permission-management", + "modules/setting-management", + "modules/feature-management", + "modules/identity", + "modules/identityserver", + "modules/tenant-management", + "modules/account", + "modules/docs", + "modules/blogging", + "modules/audit-logging", + "modules/background-jobs", + "modules/client-simulation", + "templates/module/aspnet-core", + "templates/app/aspnet-core", + "abp_io/AbpIoLocalization" +) + +# Build all solutions + +foreach ($solutionPath in $solutionPaths) { + $solutionAbsPath = (Join-Path $rootFolder $solutionPath) + Set-Location $solutionAbsPath + dotnet build --configuration Release + if (-Not $?) { + Write-Host ("Build failed for the solution: " + $solutionPath) + Set-Location $rootFolder + exit $LASTEXITCODE + } +} + +Set-Location $rootFolder