Skip to content

Commit 037310c

Browse files
authored
Update Build.ps1
Tweaks to handle useGlobalNugetCache
1 parent d9f7b30 commit 037310c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

eng/Build.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ param (
4444
[switch]$procdump,
4545
[switch]$deployExtensions,
4646
[switch]$prepareMachine,
47-
[switch]$useGlobalNuGetCache = $false,
47+
[switch]$useGlobalNuGetCache = $true,
48+
[switch]$dontUseGlobalNuGetCache = $false,
4849
[switch]$warnAsError = $true,
4950
[switch][Alias('test')]$testDesktop,
5051
[switch]$testCoreClr,
@@ -113,7 +114,7 @@ function Print-Usage() {
113114
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
114115
Write-Host " -procdump Monitor test runs with procdump"
115116
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
116-
Write-Host " -useGlobalNuGetCache Use global NuGet cache."
117+
Write-Host " -dontUseGlobalNuGetCache Do not use the global NuGet cache"
117118
Write-Host " -noVisualStudio Only build fsc and fsi as .NET Core applications. No Visual Studio required. '-configuration', '-verbosity', '-norestore', '-rebuild' are supported."
118119
Write-Host " -sourceBuild Simulate building for source-build."
119120
Write-Host " -skipbuild Skip building product"
@@ -131,6 +132,10 @@ function Process-Arguments() {
131132
exit 0
132133
}
133134

135+
if ($dontUseGlobalNugetCache -or $ci) {
136+
$script:useGlobalNugetCache = $False
137+
}
138+
134139
$script:nodeReuse = $False;
135140

136141
if ($testAll) {

0 commit comments

Comments
 (0)