misc/Get-BuildVersionFromArtifacts.ps1
function Get-BuildVersionFromArtifacts { Param( [Parameter(Mandatory=$true)] $appBasePath ) $appPath = Get-ChildItem -Name -Filter "*.app" -Path $appBasePath -Recurse if (($appPath.Length -ge 1) -and ($appPath[0] -match "\d+(\.\d+)+")) { return $Matches[0] } } |