Add --runtime parameter in bash restore to minimize package downloads and avoid trying to download non-existant packages.

This commit is contained in:
piotrp 2016-01-26 19:15:15 -08:00
parent a66546d8fb
commit ce5efda8df

View file

@ -18,10 +18,9 @@ source "$DIR/../common/_common.sh"
header "Restoring packages" header "Restoring packages"
# NOTE(anurse): I had to remove --quiet, because NuGet3 is too quiet when that's provided :( dotnet restore "$REPOROOT/src" --runtime $RID
dotnet restore "$REPOROOT/src" dotnet restore "$REPOROOT/test" --runtime $RID
dotnet restore "$REPOROOT/test" dotnet restore "$REPOROOT/tools" --runtime $RID
dotnet restore "$REPOROOT/tools"
set +e set +e
dotnet restore "$REPOROOT/testapp" >/dev/null 2>&1 dotnet restore "$REPOROOT/testapp" --runtime $RID >/dev/null 2>&1
set -e set -e