Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 8393c82

Browse files
author
Basel Rustum
authored
Add a step to install needed .NET SDKs to pipeline (#174)
1 parent 7aa6ca0 commit 8393c82

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

vsts/vsts.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ jobs:
1313
vmImage: 'ubuntu-latest'
1414
timeoutInMinutes: 60
1515
steps:
16+
- task: UseDotNet@2
17+
displayName: 'Use .NET Core 5.0 SDK'
18+
inputs:
19+
version: 5.0.x
20+
performMultiLevelLookup: true
21+
installationPath: $(Agent.ToolsDirectory)/dotnet
22+
- task: UseDotNet@2
23+
displayName: 'Use .NET Core 2.1 SDK'
24+
inputs:
25+
version: 2.1.x
26+
performMultiLevelLookup: true
27+
installationPath: $(Agent.ToolsDirectory)/dotnet
28+
- task: UseDotNet@2
29+
displayName: 'Use .NET Core 3.1 SDK'
30+
inputs:
31+
version: 3.1.x
32+
performMultiLevelLookup: true
33+
installationPath: $(Agent.ToolsDirectory)/dotnet
1634
- task: Docker@1
1735
displayName: 'Start TPM Simulator'
1836
inputs:
@@ -24,7 +42,6 @@ jobs:
2442
127.0.0.1:2321:2321
2543
127.0.0.1:2322:2322
2644
restartPolicy: unlessStopped
27-
2845
- powershell: ./build.ps1 -clean -configuration Release -build -run
2946
displayName: build and run
3047
env:
@@ -49,6 +66,24 @@ jobs:
4966
vmImage: 'windows-latest'
5067
timeoutInMinutes: 60
5168
steps:
69+
- task: UseDotNet@2
70+
displayName: 'Use .NET Core 5.0 SDK'
71+
inputs:
72+
version: 5.0.x
73+
performMultiLevelLookup: true
74+
installationPath: $(Agent.ToolsDirectory)/dotnet
75+
- task: UseDotNet@2
76+
displayName: 'Use .NET Core 2.1 SDK'
77+
inputs:
78+
version: 2.1.x
79+
performMultiLevelLookup: true
80+
installationPath: $(Agent.ToolsDirectory)/dotnet
81+
- task: UseDotNet@2
82+
displayName: 'Use .NET Core 3.1 SDK'
83+
inputs:
84+
version: 3.1.x
85+
performMultiLevelLookup: true
86+
installationPath: $(Agent.ToolsDirectory)/dotnet
5287
- powershell: ./build.ps1 -clean -configuration Release -run
5388
displayName: build and run
5489
env:

0 commit comments

Comments
 (0)