77 vmImage : ' windows-latest'
88
99variables :
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"
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