PowerShell 7.0 RC release

PowerShell 7.0 release candidate version, the official version is expected to be released next month. Let's look at PowerShell 7 some of the most important features:

  • .NET Core 3.1 (LTS)
  • ForEach-Object -Parallel
  • Windows compatibility wrapper
  • The new view errors (error view) and Get-Error cmdlet
  • Pipeline chain operators (&& and ||)
  • Ternary operator (a b:? C)
  • Air distribution and integration operators (?? and ?? =)
  • Cross-Platform Invoke-DscResource (experimental)
  • Out-GridView, -ShowWindow and other legacy Windows GUI cmdlet to return

More details will be explained in next month's issue of the official version.

In cooperation with the .NET team

Since the preview version 7.0, PowerShell and .NET teamwork are more closely than ever, not only can track .NET Core preview version 3.0 and 3.1, and can work with .NET developers to improve the performance of PowerShell. Over the past few years with the migration process to the .NET version may have trouble compared to migrate from a .NET Core 2.1 to 3.0 relatively easily, and upgrade to 3.1 is no trouble. PowerShell 7 will continue to take advantage of the new features of .NET and thus become better.

The request of .NET team and the community, PowerShell PowerShell team will also strive to be included in .NET SDK Docker container, so that application developers to write cross-platform build its cross-platform .NET applications, testing and deployment scripts. 

.NET SDK Docker container mirror

From the beginning of .NET Core 3.0, .NET PowerShell Core team started to include in their .NET SDK Docker image. For any .NET Core developers to build cross-platform applications, this is great, no matter what the platform is, or they are still running in the Azure Pipelines and other CI / CD solutions run locally, they are able to use a scripting language (PowerShell) the preparation of their build, test and deployment scripts.

.NET Core 3.1 SDK image will be updated with PowerShell 7.0 RC in the next regularly scheduled release in January next year, PowerShell intend to synchronize with .NET support life cycle.

.NET Global Tool

.NET Global Tools is a convenient way to package a special NuGet mature installed applications for the .NET SDK users have installed on your computer. Just run the install --global powershell dotnet tool on any operating system, you can run pwsh binaries in the environment. Dotnet use tool to update --global powershell, you can easily update to the new version.

As with the SDK containers Mirror, Global tool for 7.0 RC has also been available. Please note that due to version control works in the NuGet, you must use this particular installation command until the GA release:

dotnet tool install --global PowerShell --version 7.0.0-rc.1

If the previous installation you are upgrading from a global tool, use:

dotnet tool update --global PowerShell --version 7.0.0-rc.1

For details, see announcement:

https://devblogs.microsoft.com/powershell/announcing-the-powershell-7-0-release-candidate/

Guess you like

Origin www.oschina.net/news/112145/powershell-7-0-rc-released