Skip to content

Commit 176ec96

Browse files
committed
Install all .NET versions in pipeline to fix run tests task
1 parent 6dc806c commit 176ec96

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@ jobs:
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/[email protected]
31-
31+
32+
- name: Setup .NET 6.0.x
33+
uses: actions/[email protected]
34+
with:
35+
dotnet-version: 6.0.x
36+
37+
- name: Setup .NET 8.0.x
38+
uses: actions/[email protected]
39+
with:
40+
dotnet-version: 8.0.x
41+
3242
- name: Setup .NET 9.x
3343
uses: actions/[email protected]
3444
with:

build/template-Build-run-tests-sign.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ steps:
77
- script: echo $(MicrosoftIdentityModelVersion)
88
displayName: 'display MicrosoftIdentityModelVersion'
99

10+
- task: UseDotNet@2
11+
displayName: 'Use .Net Core SDK 2.x'
12+
inputs:
13+
version: 2.x
14+
installationPath: $(Agent.ToolsDirectory)/dotnet
15+
16+
- task: UseDotNet@2
17+
displayName: 'Use .Net Core SDK 6.x'
18+
inputs:
19+
version: 6.x
20+
installationPath: $(Agent.ToolsDirectory)/dotnet
21+
22+
- task: UseDotNet@2
23+
displayName: 'Use .Net Core SDK 8.x'
24+
inputs:
25+
version: 8.x
26+
installationPath: $(Agent.ToolsDirectory)/dotnet
27+
1028
- task: UseDotNet@2
1129
displayName: 'Use .Net Core SDK 9.x'
1230
inputs:

0 commit comments

Comments
 (0)