diff --git a/eng/Build.ps1 b/eng/Build.ps1 index ffa7b6d788a..04afc1b1d46 100644 --- a/eng/Build.ps1 +++ b/eng/Build.ps1 @@ -22,6 +22,7 @@ param ( # Actions [switch][Alias('r')]$restore, + [switch]$noRestore, [switch][Alias('b')]$build, [switch]$rebuild, [switch]$sign, @@ -104,6 +105,10 @@ function Process-Arguments() { $script:testVs = $True } + if ($noRestore) { + $script:restore = $False; + } + foreach ($property in $properties) { if (!$property.StartsWith("/p:", "InvariantCultureIgnoreCase")) { Write-Host "Invalid argument: $property" diff --git a/eng/build.sh b/eng/build.sh index c2d362c267f..d814dcd04d4 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -91,6 +91,9 @@ while [[ $# > 0 ]]; do --restore|-r) restore=true ;; + --norestore) + restore=false + ;; --build|-b) build=true ;;