PowerShell新版本PowerShell Core 6.0发布 支持多平台开发

微软正式发布PowerShell Core 6.0 新版本,它是跨平台的(Windows,MacOS和Linux),是开源的,并且由异构环境和混合云构建,使用 .NET Core 2.0 作为其运行时

微软旗下的PowerShell团队正式宣布推出PowerShell Core 6.0,它是跨平台的(Windows,MacOS和Linux),是开源的,并且由异构环境和混合云构建。非常诡异的是这明明是Core的第一个版本,但是却用了一个6.0后缀。

微软发布PowerShell Core第一个版本:支持多平台开发

“这是我们对PowerShell做出的最大最重要的改变!”微软技术研究员兼PowerShell创始人Jeffrey Snover在Twitter上表示。

微软发布PowerShell Core第一个版本:支持多平台开发

PowerShell Core基于.NET Core之上构建开源项目,可在Windows,MacOS、Linux、Ubuntu、Debian、OpenSUSE等多个平台上运行。

这也意味着现行的PowerShell分为了两个版本:基于.NET Framework的Windows PowerShell和基于.NET Core的 PowerShell Core,就微软目前的动向来看,这两个版本将会并行工作。

PowerShell(包括Windows PowerShell and PowerShell Core)是微软公司开发的任务自动化和配置管理框架,由.NET Framework和.NET Core是构建的命令行界面壳层相关脚本语言组成,最初仅Windows组件,后在2016年8月18日开源并跨平台支持,主要用户为IT 从业人员、程序员和高级数据库用户。

微软发布PowerShell Core第一个版本:支持多平台开发

根据微软的博客文章,PowerShell Core将像Windows和Office 365一样定期不断更新。

更新内容:

从 .NET Framework 移到 .NET Core

PowerShell Core 使用 .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+

下载:

要在 Windows 上下载 PowerShell Core,请参阅:https://aka.ms/getps6-windows
要在 macOS 和 Linux 上下载 PowerShell Core,请参阅:https://aka.ms/getps6-linux

以上就是PowerShell新版本PowerShell Core 6.0发布 支持多平台开发的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » 最新资讯