Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
2022-06-26 17:40:21 +00:00
parent 2bb5acce7b
commit 630a66bca4

View File

@@ -12,14 +12,29 @@ pr:
pool:
vmImage: 'windows-latest'
name: 'This is changed in a task, below'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
projectName: 'Gameboard.ShogiUI.Sockets'
version.MajorMinor: '1.0' # Manually change this when needed to follow semver.
version.Patch: $[counter(variables['version.MajorMinor'], 0)]
versionNumber: '$(version.MajorMinor).$(version.Patch)'
steps:
- task: PowerShell@2
displayName: Set the name of the build (i.e. the Build.BuildNumber)
inputs:
targetType: 'inline'
script: |
[string] $buildName = "$(versionNumber)_$(Build.SourceBranchName)"
Write-Host "Setting the name of the build to '$buildName'."
Write-Host "##vso[build.updatebuildnumber]$buildName"
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
@@ -37,6 +52,7 @@ steps:
publishWebProjects: false
projects: '**/*.csproj '
zipAfterPublish: false
versioningScheme: byBuildNumber
- task: FileTransform@1
inputs: