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
This commit is contained in:
Igor Sychev 2017-09-02 09:17:01 +03:00
parent 6c5bdda2f5
commit 2a64cd57de
2 changed files with 0 additions and 4 deletions

View File

@ -22,8 +22,6 @@ do
echo -e "\e[33m\tRemoving old publish output"
pushd $(pwd)/$project
rm -rf obj/Docker/publish
echo -e "\e[33m\tRestoring project"
dotnet restore
echo -e "\e[33m\tBuilding and publishing projects"
dotnet publish -o obj/Docker/publish -c Release
popd

View File

@ -13,7 +13,5 @@ Write-Host "Root path used is $rootPath" -ForegroundColor Yellow
$SolutionFilePath = [IO.Path]::Combine($rootPath, "eShopOnContainers-ServicesAndWebApps.sln")
dotnet restore $SolutionFilePath
dotnet publish $SolutionFilePath -c Release -o .\obj\Docker\publish