44# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
55
66pool :
7- vmImage : ' VS2017-Win2016 '
7+ 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
@@ -30,23 +31,39 @@ steps:
3031# nugetConfigPath: nuget.config
3132
3233# Instead run nuget manually.
33- - script : tools\nuget\nuget.exe restore
34- displayName : NuGet restore
34+
35+ - script : tools\nuget\nuget.exe restore $(githubvsSolution)
36+ displayName : NuGet restore $(githubvsSolution)
37+
38+ - script : tools\nuget\nuget.exe restore $(essentialsSolution)
39+ displayName : NuGet restore $(essentialsSolution)
3540
3641# Ideally we'd run NerdBank.GitVersioning but that will come later. For now bump the
3742# version with the azure BuildId
3843- task : PowerShell@2
44+ displayName : Bump version
3945 inputs :
4046 targetType : filePath
4147 filePath : ' $(Build.SourcesDirectory)\scripts\Bump-Version.ps1'
4248 arguments : -BumpBuild -BuildNumber:$(Build.BuildId)
43- displayName : Bump version
4449
45- - task : VSBuild@1
50+ - task : MSBuild@1
51+ displayName : GitHub for Visual Studio
52+ inputs :
53+ solution : $(githubvsSolution)
54+ platform : ' $(buildPlatform)'
55+ configuration : ' $(buildConfiguration)'
56+ msbuildVersion : ' 16.0'
57+ msbuildArguments : ' /property:DeployExtension=False'
58+
59+ - task : MSBuild@1
60+ displayName : GitHub Essentials
4661 inputs :
47- solution : GitHubVS.sln
62+ solution : $(essentialsSolution)
4863 platform : ' $(buildPlatform)'
4964 configuration : ' $(buildConfiguration)'
65+ msbuildVersion : ' 16.0'
66+ msbuildArguments : ' /property:DeployExtension=False'
5067
5168- task : VSTest@2
5269 inputs :
@@ -57,7 +74,12 @@ steps:
5774 diagnosticsEnabled : true
5875 runSettingsFile : ' $(Build.SourcesDirectory)\test\test.runsettings'
5976
77+ - task : CopyFiles@2
78+ inputs :
79+ contents : ' $(Build.SourcesDirectory)\build\$(buildConfiguration)\*.vsix'
80+ targetFolder : $(Build.ArtifactStagingDirectory)
81+
6082- task : PublishBuildArtifacts@1
6183 inputs :
62- pathtoPublish : ' $(Build.SourcesDirectory)\build\Release\GitHub.VisualStudio.vsix '
63- artifactName : ' vsix'
84+ pathToPublish : $(Build.ArtifactStagingDirectory)
85+ artifactName : ' vsix'
0 commit comments