Skip to content

Commit

Permalink
Install all .NET versions in pipeline to fix run tests task
Browse files Browse the repository at this point in the history
  • Loading branch information
msbw2 committed Nov 18, 2024
1 parent 5e4a389 commit eaf444f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4.2.1

- name: Setup .NET 6.0.x
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 6.0.x

- name: Setup .NET 7.0.x
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 7.0.x

- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 8.0.x

- name: Setup .NET 9.0.x
uses: actions/setup-dotnet@v4.1.0
with:
Expand Down
20 changes: 20 additions & 0 deletions build/template-install-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
#install dotnet core

steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK 3.1'
inputs:
version: 3.1.x

- task: UseDotNet@2
displayName: 'Use .NET SDK 6.0.x'
inputs:
version: 6.0.x

- task: UseDotNet@2
displayName: 'Use .NET SDK 7.0.x'
inputs:
version: 7.0.x

- task: UseDotNet@2
displayName: 'Use .NET SDK 8.0.x'
inputs:
version: 8.0.x

- task: UseDotNet@2
displayName: 'Use .NET SDK 9.0.x'
inputs:
Expand Down

0 comments on commit eaf444f

Please sign in to comment.