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

Commit 2a64cd5

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 6c5bdda commit 2a64cd5

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
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

0 commit comments

Comments
 (0)