Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit fda16ba

Browse files
author
Igor Sychev
committed
dotnet restore not needed in cli 2.0
"Starting with .NET Core 2.0 SDK, dotnet restore runs implicitily when you run dotnet build." (C) https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build?tabs=netcore2x
1 parent 2a64cd5 commit fda16ba

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

cli-windows/build-bits.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ $projectPaths =
3131
#Write-Host "Deleting old publish files in $outPath" -ForegroundColor Yellow
3232
remove-item -path $outPath -Force -Recurse -ErrorAction SilentlyContinue
3333
#Write-Host "Publishing $projectPathAndFile to $outPath" -ForegroundColor Yellow
34-
dotnet build $projectPathAndFile
3534
dotnet publish $projectPathAndFile -o $outPath -c Release
3635
}
3736
}

k8s/deploy.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Write-Host "Docker image Tag: $imageTag" -ForegroundColor Yellow
5454
# building and publishing docker images if needed
5555
if($buildBits) {
5656
Write-Host "Building and publishing eShopOnContainers..." -ForegroundColor Yellow
57-
dotnet restore ../eShopOnContainers-ServicesAndWebApps.sln
5857
dotnet publish -c Release -o obj/Docker/publish ../eShopOnContainers-ServicesAndWebApps.sln
5958
}
6059
if ($buildImages) {

0 commit comments

Comments
 (0)