There are some rules regarding which functions can be used in in Chocolatey packages hosted on the community repository. Basically, any function not available in PowerShell v2.0 can not be used (without a fallback helper). In this gist I want to keep a list of functions that were not available in PowerShell 2.0, or I have found that did not work as expected.
Convert-FromJson
- while it is a common function nowadays, this was only added in PowerShell 3.0 and can not be used in a community package.Get-ItemPropertyValue
- added in PowerShell 5.0, and do not exist on the Chocolatey verifier.Import-Certificate
- Only available on some Server platforms (and Windows 10). As an alternative the linked fallback helper can be used instead
hmm, those are a good point of cmdlets not being compatible.
However, I don't remember seeing it as used by any maintainers as far as I can remember and not sure if they qualify in that regard.
I was more interested in powershell cmdlets in this case, not executable flags that have changed.
But I will keep this in mind if/when I decide to include those as well.