Joey Aiello ( PowerShell 团队 PM )在微软的开发者博客上宣布 PowerShell 7.0 的 RC 版本发布,并公布将在下个月发布 GA。
PowerShell 7.0 对广大 Windows 平台的 PowerShell 用户来说,最惊艳的莫过于 Out-GridView
命令的回归,同时 Joey 也列了一些功能卖点:
- .NET Core 3.1 (LTS)
ForEach-Object -Parallel
- Windows compatibility wrapper
- New version notification
- New error view and
Get-Error
cmdlet- Pipeline chain operators (
&&
and||
)- Ternary operator (
a ? b : c
)- Null assignment and coalescing operators (
??
and??=
)- Cross-platform
Invoke-DscResource
(experimental)Out-GridView
,-ShowWindow
and other legacy GUI cmdlets are back on Windows- A ton of awesome quality-of-life improvements too numerous to list out here