Add --runtime parameter in bash restore to minimize package downloads and avoid trying to download non-existant packages.
This commit is contained in:
parent
a66546d8fb
commit
ce5efda8df
1 changed files with 4 additions and 5 deletions
|
@ -18,10 +18,9 @@ source "$DIR/../common/_common.sh"
|
|||
|
||||
header "Restoring packages"
|
||||
|
||||
# NOTE(anurse): I had to remove --quiet, because NuGet3 is too quiet when that's provided :(
|
||||
dotnet restore "$REPOROOT/src"
|
||||
dotnet restore "$REPOROOT/test"
|
||||
dotnet restore "$REPOROOT/tools"
|
||||
dotnet restore "$REPOROOT/src" --runtime $RID
|
||||
dotnet restore "$REPOROOT/test" --runtime $RID
|
||||
dotnet restore "$REPOROOT/tools" --runtime $RID
|
||||
set +e
|
||||
dotnet restore "$REPOROOT/testapp" >/dev/null 2>&1
|
||||
dotnet restore "$REPOROOT/testapp" --runtime $RID >/dev/null 2>&1
|
||||
set -e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue