Merge pull request #307 from SychevIgor/SychevIgor/DotnetRestoreRemove

dotnet restore not needed in cli 2.0
This commit is contained in:
Eduard Tomàs 2017-09-07 14:57:43 +02:00 committed by GitHub
commit 0f1d904459
4 changed files with 0 additions and 6 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

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
}
}

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) {