# # Copyright (c) .NET Foundation and contributors. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # param( [string]$NoCache="") . $PSScriptRoot\..\common\_common.ps1 if ($NoCache -eq "True") { $NoCacheArg = "--no-cache" info "Bypassing NuGet Cache" } else { $NoCacheArg = "" } # Restore packages header "Restoring packages" & "$DnxRoot\dnu" restore "$RepoRoot\src" --quiet --runtime "$Rid" "$NoCacheArg" --parallel & "$DnxRoot\dnu" restore "$RepoRoot\test" --quiet --runtime "$Rid" "$NoCacheArg" --parallel & "$DnxRoot\dnu" restore "$RepoRoot\tools" --quiet --runtime "$Rid" "$NoCacheArg" --parallel $oldErrorAction=$ErrorActionPreference $ErrorActionPreference="SilentlyContinue" & "$DnxRoot\dnu" restore "$RepoRoot\testapp" --quiet --runtime "$Rid" "$NoCacheArg" --parallel 2>&1 | Out-Null $ErrorActionPreference=$oldErrorAction