Skip to content

Commit 98b365d

Browse files
authored
Use dotnet-install script directly from CDN instead of dot.net (#113847)
The dot.net redirector is currently having issues, we should be using the script directly from the CDN anyway.
1 parent 8be8425 commit 98b365d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

eng/docker/libraries-sdk.linux.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ENV _DOTNET_INSTALL_CHANNEL=$VERSION
2020
RUN rm -rf /usr/share/dotnet
2121

2222
# Install latest daily SDK:
23-
RUN wget https://dot.net/v1/dotnet-install.sh
23+
RUN wget https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh
2424
RUN bash ./dotnet-install.sh --channel $_DOTNET_INSTALL_CHANNEL --quality daily --install-dir /usr/share/dotnet
2525

2626
# Collect the following artifacts under /live-runtime-artifacts,

eng/docker/libraries-sdk.windows.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ USER ContainerAdministrator
1414
# remove the existing ASP.NET SDK, we want to keep only the latest one we download later
1515
RUN Remove-Item -Force -Recurse 'C:/Program Files/dotnet/shared/Microsoft.AspNetCore.App/*'
1616

17-
RUN Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile .\dotnet-install.ps1
17+
RUN Invoke-WebRequest -Uri https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1 -OutFile .\dotnet-install.ps1
1818
RUN & .\dotnet-install.ps1 -Channel $env:_DOTNET_INSTALL_CHANNEL -Quality daily -InstallDir 'C:/Program Files/dotnet'
1919

2020
USER ContainerUser

src/libraries/Common/tests/System/Net/StressTests/build-local.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if (-not (Test-Path -Path $TestHostRoot)) {
4949
if (-not (Test-Path -Path $DailyDotnetRoot)) {
5050
Write-Host "Downloading daily SDK to: $DailyDotnetRoot"
5151
New-Item -ItemType Directory -Path $DailyDotnetRoot
52-
Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile "$DailyDotnetRoot\dotnet-install.ps1"
52+
Invoke-WebRequest -Uri https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1 -OutFile "$DailyDotnetRoot\dotnet-install.ps1"
5353
& "$DailyDotnetRoot\dotnet-install.ps1" -NoPath -Channel $Version -Quality daily -InstallDir $DailyDotnetRoot
5454
} else {
5555
Write-Host "Daily SDK found in $DailyDotnetRoot"

src/libraries/Common/tests/System/Net/StressTests/build-local.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fi
4848
if [[ ! -d $daily_dotnet_root ]]; then
4949
echo "Downloading daily SDK to $daily_dotnet_root"
5050
mkdir $daily_dotnet_root
51-
wget https://dot.net/v1/dotnet-install.sh -O $daily_dotnet_root/dotnet-install.sh
51+
wget https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh -O $daily_dotnet_root/dotnet-install.sh
5252
bash $daily_dotnet_root/dotnet-install.sh --no-path --channel $version --quality daily --install-dir $daily_dotnet_root
5353
else
5454
echo "Daily SDK found in $daily_dotnet_root"

src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<RemoveDir Directories="$(_SdkWithNoWorkloadPath)" />
8080
<MakeDir Directories="$(_SdkWithNoWorkloadPath)" />
8181

82-
<DownloadFile SourceUrl="https://dot.net/v1/$(_DotNetInstallScriptName)"
82+
<DownloadFile SourceUrl="https://builds.dotnet.microsoft.com/dotnet/scripts/v1/$(_DotNetInstallScriptName)"
8383
DestinationFolder="$(ArtifactsObjDir)"
8484
Retries="3"
8585
Condition="!Exists($(_DotNetInstallScriptPath))"/>

0 commit comments

Comments
 (0)