Skip to content

Commit e8c246d

Browse files
committed
Use nuget 4 in bootstrappers
This avoids a bug with nuget restore on sln’s containing unsupported project types loaded on a given system (eg: UWP on Mac)
1 parent bdbe47d commit e8c246d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Write-Host "Preparing to run build script..."
4949
$PS_SCRIPT_ROOT = split-path -parent $MyInvocation.MyCommand.Definition;
5050
$TOOLS_DIR = Join-Path $PSScriptRoot "tools"
5151
$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe"
52-
$NUGET_URL = "http://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
52+
$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe"
5353
$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
5454
$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config"
5555

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fi
6868
# Download NuGet if it does not exist.
6969
if [ ! -f "$NUGET_EXE" ]; then
7070
echo "Downloading NuGet..."
71-
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
71+
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe
7272
if [ $? -ne 0 ]; then
7373
echo "An error occured while downloading nuget.exe."
7474
exit 1

0 commit comments

Comments
 (0)