From 5330a9a0af6899eed3caa85812e9bec9a32b2501 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Mon, 23 Jul 2018 10:15:57 +0300 Subject: [PATCH] Refactor build scripts --- build-all.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build-all.ps1 b/build-all.ps1 index 20977f7e3c..31a2c15e26 100644 --- a/build-all.ps1 +++ b/build-all.ps1 @@ -4,7 +4,7 @@ $rootFolder = (Get-Item -Path "./" -Verbose).FullName # List of solutions -$solutionsPaths = ( +$solutionPaths = ( "framework", "modules/users", "modules/permission-management", @@ -13,17 +13,18 @@ $solutionsPaths = ( "modules/tenant-management", "modules/account", "modules/docs", - "modules/blogging" + "modules/blogging", + "modules/audit-logging" ) # Build all solutions -foreach ($solutionsPath in $solutionsPaths) { - $solutionAbsPath = (Join-Path $rootFolder $solutionsPath) +foreach ($solutionPath in $solutionPaths) { + $solutionAbsPath = (Join-Path $rootFolder $solutionPath) Set-Location $solutionAbsPath dotnet build if (-Not $?) { - Write-Host ("Build failed for the solution: " + $solutionsPath) + Write-Host ("Build failed for the solution: " + $solutionPath) exit $LASTEXITCODE } }