mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
23 lines
639 B
YAML
23 lines
639 B
YAML
parameters:
|
|
- name: ApplicationName
|
|
type: string
|
|
- name: PathToSearch
|
|
type: string
|
|
|
|
steps:
|
|
- task: PowerShell@2
|
|
displayName: Apply Semantic Versioning to AssemblyInfo Files
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
[string]$ApplicationName = ${{parameters.ApplicationName}}
|
|
[string]$PathToSearch = ${{parameters.PathToSearch}}
|
|
[string]$BuildNumber = $(Build.BuildNumber)
|
|
[string]$SearchFilter = 'AssemblyInfo.*'
|
|
|
|
[string]$PatternSplitCharacters = '.'
|
|
[regex]$Pattern = '\d+\.\d+\.\d+\.\d+'
|
|
[int]$PatternExpectedVersionNumbers = 4
|
|
[int]$VersionNumbersInVersion = 4
|
|
|
|
pwsh: true
|