Skip to content

Commit c0abdd0

Browse files
brettfobaronfel
authored andcommitted
allow norestore switch for regular workflow (#6371)
1 parent c8aa806 commit c0abdd0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

eng/Build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ param (
2222

2323
# Actions
2424
[switch][Alias('r')]$restore,
25+
[switch]$noRestore,
2526
[switch][Alias('b')]$build,
2627
[switch]$rebuild,
2728
[switch]$sign,
@@ -104,6 +105,10 @@ function Process-Arguments() {
104105
$script:testVs = $True
105106
}
106107

108+
if ($noRestore) {
109+
$script:restore = $False;
110+
}
111+
107112
foreach ($property in $properties) {
108113
if (!$property.StartsWith("/p:", "InvariantCultureIgnoreCase")) {
109114
Write-Host "Invalid argument: $property"

eng/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ while [[ $# > 0 ]]; do
9191
--restore|-r)
9292
restore=true
9393
;;
94+
--norestore)
95+
restore=false
96+
;;
9497
--build|-b)
9598
build=true
9699
;;

0 commit comments

Comments
 (0)