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

Commit

Permalink
Add a step to install needed .NET SDKs to pipeline (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
Basel Rustum authored Dec 14, 2020
1 parent 7aa6ca0 commit 8393c82
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion vsts/vsts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ jobs:
vmImage: 'ubuntu-latest'
timeoutInMinutes: 60
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core 5.0 SDK'
inputs:
version: 5.0.x
performMultiLevelLookup: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: UseDotNet@2
displayName: 'Use .NET Core 2.1 SDK'
inputs:
version: 2.1.x
performMultiLevelLookup: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: UseDotNet@2
displayName: 'Use .NET Core 3.1 SDK'
inputs:
version: 3.1.x
performMultiLevelLookup: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: Docker@1
displayName: 'Start TPM Simulator'
inputs:
Expand All @@ -24,7 +42,6 @@ jobs:
127.0.0.1:2321:2321
127.0.0.1:2322:2322
restartPolicy: unlessStopped

- powershell: ./build.ps1 -clean -configuration Release -build -run
displayName: build and run
env:
Expand All @@ -49,6 +66,24 @@ jobs:
vmImage: 'windows-latest'
timeoutInMinutes: 60
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core 5.0 SDK'
inputs:
version: 5.0.x
performMultiLevelLookup: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: UseDotNet@2
displayName: 'Use .NET Core 2.1 SDK'
inputs:
version: 2.1.x
performMultiLevelLookup: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: UseDotNet@2
displayName: 'Use .NET Core 3.1 SDK'
inputs:
version: 3.1.x
performMultiLevelLookup: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- powershell: ./build.ps1 -clean -configuration Release -run
displayName: build and run
env:
Expand Down

0 comments on commit 8393c82

Please sign in to comment.