You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Restore Windows PowerShell 5.1 (Desktop edition) compatibility, which regressed
in 0.8.0. Get-PSBuildCertificate used the PowerShell 7+-only ternary operator,
causing the file to fail to parse and the whole module to fail to import under
Windows PowerShell 5.1 — even though the manifest still declares support for it.
The ternary is replaced with an if/else expression, and the $IsWindows
platform guard now treats the absent automatic variable on Desktop edition as
Windows (matching the existing pattern in Build-PSBuildUpdatableHelp). Behavior
on PowerShell 7+ is unchanged.