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 6dc806c commit 176ec96
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ jobs:
steps:
- name: Checkout repository
uses: actions/[email protected]


- name: Setup .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: 6.0.x

- name: Setup .NET 8.0.x
uses: actions/[email protected]
with:
dotnet-version: 8.0.x

- name: Setup .NET 9.x
uses: actions/[email protected]
with:
Expand Down
18 changes: 18 additions & 0 deletions build/template-Build-run-tests-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ steps:
- script: echo $(MicrosoftIdentityModelVersion)
displayName: 'display MicrosoftIdentityModelVersion'

- task: UseDotNet@2
displayName: 'Use .Net Core SDK 2.x'
inputs:
version: 2.x
installationPath: $(Agent.ToolsDirectory)/dotnet

- task: UseDotNet@2
displayName: 'Use .Net Core SDK 6.x'
inputs:
version: 6.x
installationPath: $(Agent.ToolsDirectory)/dotnet

- task: UseDotNet@2
displayName: 'Use .Net Core SDK 8.x'
inputs:
version: 8.x
installationPath: $(Agent.ToolsDirectory)/dotnet

- task: UseDotNet@2
displayName: 'Use .Net Core SDK 9.x'
inputs:
Expand Down

0 comments on commit 176ec96

Please sign in to comment.