File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if [ "$DOTNET_VERSION" != "$DOTNET_INSTALLED_VERSION" ]; then
3232 if [ ! -d " $SCRIPT_DIR /.dotnet" ]; then
3333 mkdir " $SCRIPT_DIR /.dotnet"
3434 fi
35- curl -Lsfo " $SCRIPT_DIR /.dotnet/dotnet-install.sh" https://dot.net /v1/dotnet-install.sh
35+ curl -Lfo " $SCRIPT_DIR /.dotnet/dotnet-install.sh" https://builds.dotnet.microsoft.com/dotnet/scripts /v1/dotnet-install.sh
3636 # N.B. We explicitly install .NET Core 2.1 and 3.1 because .NET 6.0 SDK can build those TFMs
3737 # but will silently upgrade to a more recent runtime to execute tests if the desired runtime
3838 # isn't available. For example, `dotnet run --framework netcoreapp3.0` will silently run
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ DOTNET_SDK_VERSION="${DOTNET_SDK_VERSION:-8.0}"
66
77if [[ $OS =~ [Ww]indows.* ]]; then
88 echo " Downloading Windows .NET SDK installer into $DOTNET_SDK_PATH folder..."
9- curl -Lfo ./dotnet-install.ps1 https://dot.net /v1/dotnet-install.ps1
9+ curl -Lfo ./dotnet-install.ps1 https://builds.dotnet.microsoft.com/dotnet/scripts /v1/dotnet-install.ps1
1010 echo " Installing .NET 8.0 SDK..."
1111 powershell.exe ./dotnet-install.ps1 -Channel " $DOTNET_SDK_VERSION " -InstallDir " $DOTNET_SDK_PATH " -NoPath
1212else
1313 echo " Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..."
14- curl -Lfo ./dotnet-install.sh https://dot.net /v1/dotnet-install.sh
14+ curl -Lfo ./dotnet-install.sh https://builds.dotnet.microsoft.com/dotnet/scripts /v1/dotnet-install.sh
1515 echo " Installing .NET 8.0 SDK..."
1616 bash ./dotnet-install.sh --channel " $DOTNET_SDK_VERSION " --install-dir " $DOTNET_SDK_PATH " --no-path
1717fi
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -o errexit # Exit the script with error if any of the commands fail
66DOTNET_SDK_PATH=" $( pwd) /.dotnet"
77
88echo " Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..."
9- curl -Lfo ./dotnet-install.sh https://dot.net /v1/dotnet-install.sh
9+ curl -Lfo ./dotnet-install.sh https://builds.dotnet.microsoft.com/dotnet/scripts /v1/dotnet-install.sh
1010echo " Installing .NET 6.0 SDK..."
1111bash ./dotnet-install.sh --channel 6.0 --install-dir " $DOTNET_SDK_PATH " --no-path
1212export PATH=$DOTNET_SDK_PATH :$PATH
You can’t perform that action at this time.
0 commit comments