Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Brett Hewitson 2022-12-21 18:14:33 +10:00
parent 069b7fb87c
commit 8b9f1d90cd

View file

@ -4,6 +4,13 @@ trigger:
branches:
include:
- source
paths:
include:
- src
variables:
- name: solutionFile
value: 'src/Server-Managers.sln'
steps:
- task: NuGetToolInstaller@1
@ -14,14 +21,12 @@ steps:
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: '$(SolutionFile)'
restoreSolution: '$(solutionFile)'
- task: PowerShell@2
displayName: 'Apply Semantic Versioning to Assemblies'
inputs:
targetType: filePath
filePath: '.\src\_deployment\scripts\ApplySemanticVersioningToAssemblies.ps1'
filePath: './.azure/scripts/ApplySemanticVersioningToAssemblies.ps1'
arguments: "-applicationName $(ApplicationName) -pathToSearch './src' -buildNumber $()"
pwsh: true
env:
BUILD_APPLICATION_NAME: $(ApplicationName)
BUILD_SOURCE_PATH: $(Build.SourcesDirectory)\src