Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit e16e03d

Browse files
committed
Some bootstrapper fixes for windows
1 parent 6553ff8 commit e16e03d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

build.ps1

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,21 @@ if (!(Test-Path $PACKAGES_CONFIG)) {
8989
}
9090
} else {
9191
Write-Verbose -Message "using local cake.packages.config..."
92-
CopyItem $CAKE_PACKAGES_CONFIG $PACKAGES_CONFIG
92+
Copy-Item $CAKE_PACKAGES_CONFIG $PACKAGES_CONFIG
9393
}
9494
}
9595

96+
# Let's just skip this check and always download nuget.exe
9697
# Try find NuGet.exe in path if not exists
97-
if (!(Test-Path $NUGET_EXE)) {
98-
Write-Verbose -Message "Trying to find nuget.exe in PATH..."
99-
$existingPaths = $Env:Path -Split ';' | Where-Object { Test-Path $_ }
100-
$NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1
101-
if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) {
102-
Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)."
103-
$NUGET_EXE = $NUGET_EXE_IN_PATH.FullName
104-
}
105-
}
98+
# if (!(Test-Path $NUGET_EXE)) {
99+
# Write-Verbose -Message "Trying to find nuget.exe in PATH..."
100+
# $existingPaths = $Env:Path -Split ';' | Where-Object { Test-Path $_ }
101+
# $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1
102+
# if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) {
103+
# Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)."
104+
# $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName
105+
# }
106+
#}
106107

107108
# Try download NuGet.exe if not exists
108109
if (!(Test-Path $NUGET_EXE)) {

0 commit comments

Comments
 (0)