Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 66a476e

Browse files
committed
Use variables more consistently
1 parent 75020c6 commit 66a476e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ pool:
77
vmImage: 'windows-latest'
88

99
variables:
10-
solution: '**/*.sln'
10+
githubvsSolution: 'GitHubVS.sln'
11+
essentialsSolution: 'src\GitHub.VisualStudio.16.sln'
1112
buildPlatform: 'Any CPU'
1213
buildConfiguration: 'Release'
1314

@@ -31,33 +32,33 @@ steps:
3132

3233
# Instead run nuget manually.
3334

34-
- script: tools\nuget\nuget.exe restore GitHubVS.sln
35-
displayName: NuGet restore GitHubVS.sln
35+
- script: tools\nuget\nuget.exe restore $(githubvsSolution)
36+
displayName: NuGet restore $(githubvsSolution)
3637

37-
- script: tools\nuget\nuget.exe restore src\GitHub.VisualStudio.16.sln
38-
displayName: NuGet restore src\GitHub.VisualStudio.16.sln
38+
- script: tools\nuget\nuget.exe restore $(essentialsSolution)
39+
displayName: NuGet restore $(essentialsSolution)
3940

4041
# Ideally we'd run NerdBank.GitVersioning but that will come later. For now bump the
4142
# version with the azure BuildId
4243
- task: PowerShell@2
44+
displayName: Bump version
4345
inputs:
4446
targetType: filePath
4547
filePath: '$(Build.SourcesDirectory)\scripts\Bump-Version.ps1'
4648
arguments: -BumpBuild -BuildNumber:$(Build.BuildId)
47-
displayName: Bump version
4849

4950
- task: VSBuild@1
5051
displayName: GitHub for Visual Studio
5152
inputs:
52-
solution: GitHubVS.sln
53+
solution: $(githubvsSolution)
5354
platform: '$(buildPlatform)'
5455
configuration: '$(buildConfiguration)'
5556
vsVersion: "16.0"
5657

5758
- task: VSBuild@1
5859
displayName: GitHub Essentials
5960
inputs:
60-
solution: src\GitHub.VisualStudio.16.sln
61+
solution: $(essentialsSolution)
6162
platform: '$(buildPlatform)'
6263
configuration: '$(buildConfiguration)'
6364
vsVersion: "16.0"
@@ -73,5 +74,5 @@ steps:
7374

7475
- task: PublishBuildArtifacts@1
7576
inputs:
76-
pathtoPublish: '$(Build.SourcesDirectory)\build\Release\GitHub.VisualStudio.vsix'
77+
pathtoPublish: '$(Build.SourcesDirectory)\build\$(buildConfiguration)\*.vsix'
7778
artifactName: 'vsix'

0 commit comments

Comments
 (0)