Skip to content

Commit

Permalink
Install .NET SDKs on Windows runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddunkin committed Nov 16, 2023
1 parent 8ebba05 commit ff7b98c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions windows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ RUN `
&& (for %i in ("%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\*") do if not "%~nxi" == "vswhere.exe" del "%~i") `
&& powershell Remove-Item -Force -Recurse "%TEMP%\*"

# Install supported .NET SDKs
RUN `
curl -fSLO https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1 `
&& powershell .\dotnet-install.ps1 -Channel 6.0 `
&& powershell .\dotnet-install.ps1 -Channel 7.0 `
&& powershell .\dotnet-install.ps1 -Channel 8.0 `
&& del dotnet-install.ps1

WORKDIR /actions-runner

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';$ProgressPreference='silentlyContinue';"]
Expand Down

0 comments on commit ff7b98c

Please sign in to comment.