Browse Source

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
pull/307/head
Igor Sychev 7 years ago
parent
commit
fda16ba617
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      cli-windows/build-bits.ps1
  2. +0
    -1
      k8s/deploy.ps1

+ 0
- 1
cli-windows/build-bits.ps1 View File

@ -31,7 +31,6 @@ $projectPaths =
#Write-Host "Deleting old publish files in $outPath" -ForegroundColor Yellow
remove-item -path $outPath -Force -Recurse -ErrorAction SilentlyContinue
#Write-Host "Publishing $projectPathAndFile to $outPath" -ForegroundColor Yellow
dotnet build $projectPathAndFile
dotnet publish $projectPathAndFile -o $outPath -c Release
}
}


+ 0
- 1
k8s/deploy.ps1 View File

@ -54,7 +54,6 @@ Write-Host "Docker image Tag: $imageTag" -ForegroundColor Yellow
# building and publishing docker images if needed
if($buildBits) {
Write-Host "Building and publishing eShopOnContainers..." -ForegroundColor Yellow
dotnet restore ../eShopOnContainers-ServicesAndWebApps.sln
dotnet publish -c Release -o obj/Docker/publish ../eShopOnContainers-ServicesAndWebApps.sln
}
if ($buildImages) {


Loading…
Cancel
Save