Skip to content

Commit ed3c153

Browse files
committed
Update build.yml for Azure Pipelines
1 parent b7105db commit ed3c153

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

build.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# .NET Desktop
2-
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
3-
# Add steps that publish symbols, save build artifacts, and more:
4-
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
5-
61
trigger:
72
- main
83

@@ -14,20 +9,30 @@ variables:
149
buildPlatform: 'Any CPU'
1510
buildConfiguration: 'Release'
1611

17-
steps:
18-
- task: NuGetToolInstaller@1
19-
20-
- task: NuGetCommand@2
21-
inputs:
22-
restoreSolution: '$(solution)'
12+
jobs:
13+
- job: Restore
14+
displayName: 'Restore NuGet Packages'
15+
steps:
16+
- task: NuGetToolInstaller@1
17+
- task: NuGetCommand@2
18+
inputs:
19+
restoreSolution: '$(solution)'
2320

24-
- task: VSBuild@1
25-
inputs:
26-
solution: '$(solution)'
27-
platform: '$(buildPlatform)'
28-
configuration: '$(buildConfiguration)'
21+
- job: Build
22+
displayName: 'Build Solution'
23+
dependsOn: Restore
24+
steps:
25+
- task: VSBuild@1
26+
inputs:
27+
solution: '$(solution)'
28+
platform: '$(buildPlatform)'
29+
configuration: '$(buildConfiguration)'
2930

30-
- task: VSTest@2
31-
inputs:
32-
platform: '$(buildPlatform)'
33-
configuration: '$(buildConfiguration)'
31+
- job: Test
32+
displayName: 'Run Tests'
33+
dependsOn: Build
34+
steps:
35+
- task: VSTest@2
36+
inputs:
37+
platform: '$(buildPlatform)'
38+
configuration: '$(buildConfiguration)'

0 commit comments

Comments
 (0)