diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 16c4517..da97dc7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,51 +1,46 @@ trigger: -- master + - master + - preview variables: - buildConfiguration: 'Release' + buildConfiguration: 'Release' stages: -- stage: Windows - displayName: Build and Test - jobs: - - job: Build - displayName: Build and Test - pool: - vmImage: 'windows-latest' - - steps: - - task : UseDotNet@2 - displayName: Add .NET 3.1.x SDK - inputs: - packageType: 'sdk' - version: '3.1.x' - - - task : UseDotNet@2 - displayName: Add .NET 5.0.x SDK - inputs: - packageType: 'sdk' - version: '5.0.x' - - - task : UseDotNet@2 - displayName: Add .NET 6.0.x SDK - inputs: - packageType: 'sdk' - version: '6.0.100-preview.7.21379.14' - - - task: DotNetCoreCLI@2 - displayName: Restore projects - inputs: - command: 'restore' - feedsToUse: 'select' - - - task: DotNetCoreCLI@2 - displayName: Build projects - inputs: - command: 'build' - arguments: '-c $(buildConfiguration) --no-restore' - - - task: DotNetCoreCLI@2 - displayName: Test projects - inputs: - command: 'test' - arguments: '-c $(buildConfiguration) --no-build --no-restore --verbosity normal' + - stage: Windows + displayName: Build and Test + jobs: + - job: Build + displayName: Build and Test + pool: + vmImage: 'windows-latest' + + steps: + - task: UseDotNet@2 + displayName: Setup .NET SDKs + inputs: + packageType: 'sdk' + version: | + '3.1.x', + '5.0.x', + '6.0.x', + '7.0.x' + includePreviewVersions: true + + + - task: DotNetCoreCLI@2 + displayName: Restore projects + inputs: + command: 'restore' + feedsToUse: 'select' + + - task: DotNetCoreCLI@2 + displayName: Build projects + inputs: + command: 'build' + arguments: '-c $(buildConfiguration) --no-restore' + + - task: DotNetCoreCLI@2 + displayName: Test projects + inputs: + command: 'test' + arguments: '-c $(buildConfiguration) --no-build --no-restore --verbosity normal'