Skip to content

Commit

Permalink
Use new gitversion task
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Jul 3, 2024
1 parent 5341e33 commit f138613
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ steps:
- checkout: self
persistCredentials: true

- task: NuGetCommand@2
displayName: Install GitVersion
- task: gitversion/setup@0
displayName: 'Install GitVersion'
inputs:
command: custom
arguments: install GitVersion.CommandLine -Version 4.0.0 -OutputDirectory $(Build.BinariesDirectory)/tools -ExcludeVersion
versionSpec: '5.x'

- script: $(Build.BinariesDirectory)/tools/GitVersion.CommandLine/tools/GitVersion.exe /output buildserver /nofetch /updateassemblyinfo /updateprojectfiles
displayName: Determine Version
- task: gitversion/execute@0
displayName: 'Determine Version'
inputs:
updateAssemblyInfo: true

- task: PowerShell@2
displayName: Update version in the vsix manifest
inputs:
filePath: 'MarkMpn.Sql4Cds.SSMS\update-version.ps1'
arguments: '$(GitVersion.AssemblySemVer)'
arguments: '$(assemblySemVer)'
pwsh: true

- task: DotNetCoreCLI@2
Expand Down

0 comments on commit f138613

Please sign in to comment.