2015-12-28 19:47:21 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2016-01-05 07:50:28 +00:00
|
|
|
param(
|
|
|
|
[string]$NoCache="")
|
|
|
|
|
2015-12-28 19:47:21 +00:00
|
|
|
. $PSScriptRoot\..\common\_common.ps1
|
|
|
|
|
2016-01-05 07:50:28 +00:00
|
|
|
if ($NoCache -eq "True") {
|
|
|
|
$NoCacheArg = "--no-cache"
|
|
|
|
info "Bypassing NuGet Cache"
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$NoCacheArg = ""
|
|
|
|
}
|
|
|
|
|
2015-12-28 19:47:21 +00:00
|
|
|
# Restore packages
|
|
|
|
header "Restoring packages"
|
2016-01-13 00:36:31 +00:00
|
|
|
& "$DnxRoot\dnu" restore "$RepoRoot\src" --quiet --runtime "$Rid" "$NoCacheArg"
|
|
|
|
& "$DnxRoot\dnu" restore "$RepoRoot\test" --quiet --runtime "$Rid" "$NoCacheArg"
|
|
|
|
& "$DnxRoot\dnu" restore "$RepoRoot\tools" --quiet --runtime "$Rid" "$NoCacheArg"
|
2015-12-28 19:47:21 +00:00
|
|
|
|
|
|
|
$oldErrorAction=$ErrorActionPreference
|
|
|
|
$ErrorActionPreference="SilentlyContinue"
|
2016-01-13 00:36:31 +00:00
|
|
|
& "$DnxRoot\dnu" restore "$RepoRoot\testapp" --quiet --runtime "$Rid" "$NoCacheArg" 2>&1 | Out-Null
|
2015-12-28 19:47:21 +00:00
|
|
|
$ErrorActionPreference=$oldErrorAction
|
|
|
|
|