Skip to content

Commit 9220346

Browse files
authored
Ensure .NET 5 is available on build agents (#753)
1 parent 533ba93 commit 9220346

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ install:
1818
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
1919
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
2020
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
21+
# .NET 5 required for Codecov.Tool
22+
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
2123
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.425 -InstallDir $env:DOTNET_INSTALL_DIR'
2224
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.409 -InstallDir $env:DOTNET_INSTALL_DIR'
2325
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.402 -InstallDir $env:DOTNET_INSTALL_DIR'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Installs .NET 6
2+
3+
steps:
4+
- task: UseDotNet@2
5+
inputs:
6+
version: '5.x'
7+
displayName: 'Install .NET 5'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Installs required .NET SDKs for building the solution.
22

33
steps:
4+
# .NET 5 required for Codecov.Tool
5+
- template: install-net5.yml
46
- template: install-net6.yml
57
- template: install-net7.yml
68
- template: install-net8.yml

0 commit comments

Comments
 (0)