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:
parent
6c5bdda2f5
commit
2a64cd57de
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user