微软旗下的 PowerShell 团队正式宣布推出 PowerShell Core 6.0。PowerShell Core 6.0 是 PowerShell 的新版本,它支持跨平台并且开源(支持 Windows、macOS 和 Linux),为异构环境(Heterogeneous Environments)和混合云而构建。 目前的 PowerShell 分为两个版本:基于 .NET Framework 的 Windows PowerShell 和基于 .NET Core 的 PowerShell Core,就微软目前的动向来看,这两个版本将会并行工作。 更新内容: 从 .NET Framework 移到 .NET Core PowerShell Core 使用 .NET Core 2.0 作为其运行时。.NET Core 2.0 使 PowerShell Core 能够在多个平台(Windows,macOS 和 Linux)上工作。PowerShell Core 还公开了由 .NET Core 2.0 提供的用于 PowerShell cmdlet 和脚本上的 API。 Windows PowerShell 使用 .NET Framework 运行时来托管 PowerShell 引擎,公开了 .NET Framework 提供的 API 集。 支持 macOS 和 Linux Windows 7, 8.1, and 10 Windows Server 2008 R2, 2012 R2, 2016 Windows Server Semi-Annual Channel Ubuntu 14.04, 16.04, and 17.04 Debian 8.7+, and 9 CentOS 7 Red Hat Enterprise Linux 7 OpenSUSE 42.2 Fedora 25, 26 macOS 10.12+ PowerShell Core 6.0 完整更新列表:https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-60 下载: 要在 Windows 上下载 PowerShell Core,请参阅:https://aka.ms/getps6-windows 要在 macOS 和 Linux 上下载 PowerShell Core,请参阅:https://aka.ms/getps6-linux 详细内容请点此查看:https://blogs.msdn.microsoft.com/po...ore-6-0-generally-available-ga-and-supported/ PowerShell Core 6.0 使用 .NET Core 2.0 作为运行时下载地址