Commit 44163e38 authored by Nick Craver's avatar Nick Craver

Fix build - go per-project

When building the solution, the local ref Marc has is in the solution...this fails restore and build in CI. Adapting!
parent 420a024f
...@@ -24,9 +24,13 @@ if ($PullRequestNumber) { ...@@ -24,9 +24,13 @@ if ($PullRequestNumber) {
$CreatePackages = $false $CreatePackages = $false
} }
Write-Host "Building solution..." -ForegroundColor "Magenta" Write-Host "Building projects..." -ForegroundColor "Magenta"
dotnet restore ".\StackExchange.Redis.sln" /p:CI=true foreach ($project in $projectsToBuild + $testsToRun) {
dotnet build ".\StackExchange.Redis.sln" -c Release /p:CI=true Write-Host "Building $project (dotnet restore/build)..." -ForegroundColor "Magenta"
dotnet restore ".\$project\$project.csproj" /p:CI=true
dotnet build ".\$project\$project.csproj" -c Release /p:CI=true
Write-Host ""
}
Write-Host "Done building." -ForegroundColor "Green" Write-Host "Done building." -ForegroundColor "Green"
if ($RunTests) { if ($RunTests) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment