Skip to content

Commit

Permalink
fix: Support .NET 7 on azure pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Sagilio <[email protected]>
  • Loading branch information
sagilio committed Jun 2, 2022
1 parent 601a6c0 commit 9745774
Showing 1 changed file with 41 additions and 46 deletions.
87 changes: 41 additions & 46 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 9745774

Please sign in to comment.