正如标题所说:PowerShell 5.1 和 PowerShell 7 有什么区别?
TLDR:PowerShell Core 是 PowerShell Desktop v5 的多平台分支。PowerShell Desktop v5 只会修复错误,所有未来的开发都将在 Core 上进行。然而,Desktop PowerShell 的某些功能在 Core v7 中仍然没有找到它们的用处。因此,对于这些功能,您仍然需要 PowerShell Desktop v5.1。微软似乎致力于缩小 PowerShell Desktop 和 Core 之间的功能差距。
\n长版
\nPowerShell又名Windows PowerShell、PowerShell Desktop、PowerShell v1 至 v5:它现在并将继续是一个非常稳定的平台,不会进行重大修改或获得新功能。Microsoft 仅向 Windows PowerShell 提供错误修复和安全更新。
\nPowerShell Core AKA PowerShell v6,7,\xe2\x80\xa6:它是多平台(Linux、Mac、Windows)的产品,它将获得所有新功能。所以这应该是那些想要拥有最新、最强大功能的人的选择。PowerShell Core 的第一个版本(与 Windows Server 2016 Nano Server 捆绑在一起的 ver5.1)是 Windows PowerShell 5 的一个分支,它不具备其所有功能。即使在 Windows 版本的 PowerShell Core 6 中,许多在 v5 中找到的 cmdlet 也丢失了。不仅如此,还缺少整个模块。另一方面,许多新功能、cmdlet 和模块首次出现在 v6 和 v7 中,所有新功能都将仅针对 PowerShell Core 开发。在 v7 的公告中,微软写道:“PowerShell 7 的一大重点是使其成为 Windows PowerShell 5.1 的可行替代品。这意味着它在与 Windows 附带的模块的兼容性方面必须与 Windows PowerShell 接近。”
\n[这个答案基于维基百科和http://techgenix.com/powershell-core/]
\n| 归档时间: |
|
| 查看次数: |
2602 次 |
| 最近记录: |