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

Commit 0f1d904

Browse files
authored
Merge pull request #307 from SychevIgor/SychevIgor/DotnetRestoreRemove
dotnet restore not needed in cli 2.0
2 parents 9959860 + fda16ba commit 0f1d904

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

cli-mac/build-bits.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ do
2222
echo -e "\e[33m\tRemoving old publish output"
2323
pushd $(pwd)/$project
2424
rm -rf obj/Docker/publish
25-
echo -e "\e[33m\tRestoring project"
26-
dotnet restore
2725
echo -e "\e[33m\tBuilding and publishing projects"
2826
dotnet publish -o obj/Docker/publish -c Release
2927
popd

cli-windows/build-bits-simple.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ Write-Host "Root path used is $rootPath" -ForegroundColor Yellow
1313

1414
$SolutionFilePath = [IO.Path]::Combine($rootPath, "eShopOnContainers-ServicesAndWebApps.sln")
1515

16-
dotnet restore $SolutionFilePath
17-
1816
dotnet publish $SolutionFilePath -c Release -o .\obj\Docker\publish
1917

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)