Variables Supported in Settings.ps1 Files?

Product: PowerShell Universal
Version: 1.5.14

@adam I couldn’t find any info on this anywhere in the docs (actually I’ve found that it’s tough to find info in the docs regarding most of the backend sort of things – though I sort of write that off as ‘this is supposed to be a UI heavy system’

Are Variables (Environment or otherwise) supported in the settings.ps1 files? (Such as Environments.ps1, scripts.ps1, etc…)?
IE:

New-PSUEnvironment -Name "Desktop" -Path "powershell.exe" -Variables @('*') -Modules @("${TestVariable}\TestModule\TestModule.psd1")

Variables from the variables.ps1 will not be populated in other configuration files.

We could make that change…

We do support any built in variables because we are just executing the PS Scripts.

I can see it being useful, and would certainly use it! I would share some examples here but there’s too much I’d have to obfuscate to want to do so. If you want to see what I am working with, I can share in a PM/Email.

Feel free to PM an example. I have an idea but more data is always good :smiley: