File tree 3 files changed +4
-4
lines changed
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
32
32
if [ ! -d " $SCRIPT_DIR /.dotnet" ]; then
33
33
mkdir " $SCRIPT_DIR /.dotnet"
34
34
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
36
36
# N.B. We explicitly install .NET Core 2.1 and 3.1 because .NET 6.0 SDK can build those TFMs
37
37
# but will silently upgrade to a more recent runtime to execute tests if the desired runtime
38
38
# 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}"
6
6
7
7
if [[ $OS =~ [Ww]indows.* ]]; then
8
8
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
10
10
echo " Installing .NET 8.0 SDK..."
11
11
powershell.exe ./dotnet-install.ps1 -Channel " $DOTNET_SDK_VERSION " -InstallDir " $DOTNET_SDK_PATH " -NoPath
12
12
else
13
13
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
15
15
echo " Installing .NET 8.0 SDK..."
16
16
bash ./dotnet-install.sh --channel " $DOTNET_SDK_VERSION " --install-dir " $DOTNET_SDK_PATH " --no-path
17
17
fi
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
6
6
DOTNET_SDK_PATH=" $( pwd) /.dotnet"
7
7
8
8
echo " 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
10
10
echo " Installing .NET 6.0 SDK..."
11
11
bash ./dotnet-install.sh --channel 6.0 --install-dir " $DOTNET_SDK_PATH " --no-path
12
12
export PATH=$DOTNET_SDK_PATH :$PATH
You can’t perform that action at this time.
0 commit comments