Product: PowerShell Universal
Version: 5.6.10 ->
Recently updated from 5.6.8 to 5.6.13, and had to revert due to a change in behaviour. Backtracked it and found it changed between 5.6.9 and 5.6.10, and this behaviour is the same in later releases as well.
We have a folder structure that we use to “build” tabs in an app. The app code itself is as follows:
New-UDApp -Content {
New-UDTabs -Tabs {
Get-ChildItem ".\dashboards\<folder>" -Filter *.ps1 -File | ForEach-Object {
$fullName = $_.FullName
$baseName = $_.BaseName
$tabName = $_.BaseName.Replace('_',' ') -replace '^[0-9.]*',''
Show-UDToast -Message "fullName: '$fullName' ----" -Duration 10000000
New-UDTab -Text "$tabName" -Id "$baseName" -Content {. "$fullName"}
}
}
}
It traverses a folder, reads the files and contents, and creates a tab per file. Show-UDToast added just to verify the contents of the variable.
In and up to 5.6.9 this rendered as follows (contents changed, if that’s not obvious)
After upgrade to 5.6.10 onwards it instead results in an “error”
The tab still renders, but there is no content.
The output in Show-UDToastpoints to the correct path, and if I replace the variable to the actual path it renders ok even in 5.6.10 onwards.
New-UDTab -Text "$tabName" -Id "$baseName" -Content {. "C:\ProgramData\UniversalAutomation\Repository\dashboards\<folder>\1.<filename>.ps1"}
This feels like a bug as it changes behaviour.. But can I get it confirmed?

