-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall-dotnet-sdk.yml
39 lines (37 loc) · 1011 Bytes
/
install-dotnet-sdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
parameters:
- name: dotNetVersion
displayName: .NET Version (e.g. 3.1.x, 6.x, 8.x)
type: string
default: '8.x'
- name: vmImage
displayName: Agent image
type: string
default: 'windows-latest'
values:
- macos-latest
- ubuntu-latest
- windows-latest
trigger: none
schedules:
- cron: '0 1 * * *'
displayName: 'Nightly build (UTC)'
always: 'true'
branches:
include:
- main
name: $(Date:yyyyMMdd)$(Rev:.r)-$(Build.DefinitionVersion)-${{ parameters.vmImage }}-dotnet-${{ parameters.dotNetVersion }}-$(SourceBranchName)-$(Build.BuildId)
jobs:
- job: 'usedotnet'
displayName: 'Use .NET SDK ${{ parameters.dotNetVersion }}'
pool:
name: 'Azure Pipelines'
vmImage: '${{ parameters.vmImage }}'
steps:
- pwsh: dotnet --list-sdks
displayName: 'List .NET SDKs'
- task: UseDotNet@2
displayName: 'Use .NET SDK ${{ parameters.dotNetVersion }}'
inputs:
version: '${{ parameters.dotNetVersion }}'
- pwsh: dotnet --list-sdks
displayName: 'List .NET SDKs'