AL/Get-VersionAppJson.ps1
function Get-VersionAppJson { Param ( [Parameter(Mandatory=$false)] [string]$SourcePath = (Get-Location), [Parameter(Mandatory=$false)] [string] $ImageName = "" ) $platform = Get-AppKeyValue -KeyName 'platform' -SourcePath $SourcePath if ($platform -eq "") { if ($ImageName -eq "") { $platform = "0.0.0.0" } else { $platform = "$($ImageName).0.0" } } [version]$platform } |