diff --git a/build-images.ps1 b/build-images.ps1 index ab59275e5..c34290d3a 100644 --- a/build-images.ps1 +++ b/build-images.ps1 @@ -7,23 +7,34 @@ $pubFolderToDelete = $scriptPath + "\pub" remove-item -path $pubFolderToDelete -Force -Recurse -ErrorAction SilentlyContinue #cmd /c "rd /s pub" /q - +# *** WebMVC image *** $webPathToJson = $scriptPath + "\src\Web\WebMVC\project.json" Write-Host "webPathToJson is $webPathToJson" -ForegroundColor Yellow $webPathToPub = $scriptPath + "\pub\webMVC" Write-Host "webPathToPub is $webPathToPub" -ForegroundColor Yellow + +Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue +dotnet restore $webPathToJson dotnet publish $webPathToJson -o $webPathToPub +#*** Catalog service image *** $catalogPathToJson = $scriptPath + "\src\Services\Catalog\Catalog.API\project.json" Write-Host "catalogPathToJson is $catalogPathToJson" -ForegroundColor Yellow $catalogPathToPub = $scriptPath + "\pub\catalog" Write-Host "catalogPathToPub is $catalogPathToPub" -ForegroundColor Yellow + +Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue +dotnet restore $catalogPathToJson dotnet publish $catalogPathToJson -o $catalogPathToPub +#*** Ordering service image *** $orderingPathToJson = $scriptPath + "\src\Services\Ordering\Ordering.API\project.json" Write-Host "orderingPathToJson is $orderingPathToJson" -ForegroundColor Yellow $orderingPathToPub = $scriptPath + "\pub\ordering" Write-Host "orderingPathToPub is $orderingPathToPub" -ForegroundColor Yellow + +Write-Host "Restore Dependencies just in case as it is needed to run dotnet publish" -ForegroundColor Blue +dotnet restore $orderingPathToJson dotnet publish $orderingPathToJson -o $orderingPathToPub