7.2.0-preview.6 - 2021-05-27
Note:
- Known issue about some filesystem cmdlets do not work correctly with long paths, such as
Remove-Item
,Rename-Item
andSet-Location
. For details see: #15466 - PSReadLine 2.2.0-beta1 and 2.2.0-beta2 do not work with this preview of PowerShell due to breaking changes in the prediction interface. The upcoming PSReadLine 2.2.0-beta3 release will resolve this. Use PSReadLine 2.1.0 as the temporary workaround.
Experimental Features
- [Breaking Change] Update prediction interface to provide additional feedback to a predictor plugin (#15421)
Performance
- Avoid collecting logs in buffer if a pipeline execution event is not going to be logged (#15350)
- Avoid allocation in
LanguagePrimitives.UpdateTypeConvertFromTypeTable
(#15168) (Thanks @xtqqczze!) - Replace
Directory.GetDirectories
withDirectory.EnumerateDirectories
to avoid array allocations (#15167) (Thanks @xtqqczze!) - Use
List.ConvertAll
instead ofLINQ
(#15140) (Thanks @xtqqczze!)
General Cmdlet Updates and Fixes
- Use
AllocConsole
before initializing CLR to ensure codepage is correct for WinRM remoting (PowerShell/PowerShell-Native#70) (Thanks @jborean93!) - Add completions for
#requires
statements (#14596) (Thanks @MartinGC94!) - Add completions for comment-based help keywords (#15337) (Thanks @MartinGC94!)
- Move cross platform DSC code to a PowerShell engine subsystem (#15127)
- Fix
Minimal
progress view to handle activity that is longer than console width (#15264) - Handle exception if ConsoleHost tries to set cursor out of bounds because screen buffer changed (#15380)
- Fix
NullReferenceException
in DSCClearCache()
(#15373) - Update
ControlSequenceLength
to handle colon as a virtual terminal parameter separator (#14942) - Update the summary comment for
StopTranscriptCmdlet.cs
(#15349) (Thanks @dbaileyut!) - Remove the unusable alias
d
for the-Directory
parameter fromGet-ChildItem
(#15171) (Thanks @kvprasoon!) - Fix tab completion for un-localized
about
topics (#15265) (Thanks @MartinGC94!) - Remove the unneeded SSH stdio handle workaround (#15308)
- Add
LoadAssemblyFromNativeMemory
API to load assemblies from memory in a native PowerShell host (#14652) (Thanks @awakecoding!) - Re-implement
Remove-Item
OneDrive support (#15260) (Thanks @iSazonov!) - Kill native processes in pipeline when pipeline is disposed on Unix (#15287)
- Default to MTA on Windows platforms where STA is not supported (#15106)
Code Cleanup
We thank the following contributors!
- Enable
nullable
in some classes (#14185, #14177, #14159, #14191, #14162, #14150, #14156, #14161, #14155, #14163, #14181, #14157, #14151) (Thanks @powercode!) - Annotate
ThrowTerminatingError
withDoesNotReturn
attribute (#15352) (Thanks @powercode!) - Use
GetValueOrDefault()
for nullablePSLanguageMode
(#13849) (Thanks @bcwood!) - Enable
SA1008
: Opening parenthesis should be spaced correctly (#14242) (Thanks @xtqqczze!)
Tools
- Add
winget
release script (#15050)
Tests
- Enable cross-runtime benchmarking to compare different .NET runtimes (#15387) (Thanks @adamsitnik!)
- Add the performance benchmark project for PowerShell performance testing (#15242)
Build and Packaging Improvements
Update .NET to version v6.0.0-preview.4
- Suppress prompting when uploading the
msixbundle
package to blob (#15227) - Update to .NET preview 4 SDK (#15452)
- Update
AppxManifest.xml
with newer OS version to allow PowerShell installed from Windows Store to make system-level changes (#15375) - Ensure the build works when
PSDesiredStateConfiguration
module is pulled in from PSGallery (#15355) - Make sure daily release tag does not change when retrying failures (#15286)
- Improve messages and behavior when there's a problem in finding zip files (#15284)
Documentation and Help Content
SHA256 Hashes of the release artifacts
- powershell-7.2.0-preview.6-linux-alpine-x64.tar.gz
- E77A889A4DFC858B3C415C3DC2945A09EF190AAA1E4BBA86AE631FDDDCD56F42
- powershell-7.2.0-preview.6-linux-arm32.tar.gz
- 657A5DF09BCA1EA5294C912AC2F98BF340579E0CB296ED018A585667ADBC93B5
- powershell-7.2.0-preview.6-linux-arm64.tar.gz
- 2370375958F09D0C19EC4FA698BF34282D630E7EFB7C846DE621323B00F123B2
- powershell-7.2.0-preview.6-linux-x64.tar.gz
- 69DAACCFA497BEA70798F44888F008E3DAB660260FB5FCABC7F95A63E250FB09
- powershell-7.2.0-preview.6-linux-x64-fxdependent.tar.gz
- FD900383CB74C6B8F4F6907009B78822EE09AB607B2F1479CA4D89D055E4B32B
- powershell-7.2.0-preview.6-osx-x64.pkg
- FF0604EAE1769AFBF1A39303E4B2C107E833381099017037EBAF02DC6F7C788A
- powershell-7.2.0-preview.6-osx-x64.tar.gz
- 3E20637FAA53DEB1531E23D623B7003BA53ACC2D7732737F5E45A1D1733675CA
- PowerShell-7.2.0-preview.6-win-arm32.zip
- A9317BCA1FE626F868B1F7957C83EF1AD97D8B8839B8373027C6BAE240723022
- PowerShell-7.2.0-preview.6-win-arm64.zip
- 7DFEFFD980D9F8F2728FDF443597F44911B8991E6ADB077FC2665A0486A29B79
- PowerShell-7.2.0-preview.6-win-fxdependent.zip
- 4C29422A9189DA7DCD98E12676F1D53E11A43FA8F99E299A74CE5D5F581B8FE6
- PowerShell-7.2.0-preview.6-win-fxdependentWinDesktop.zip
- 076C904097E55A200899BC1ECBEBB5649DA91C4AEE9E9F37A6CEEB70A0C817C8
- PowerShell-7.2.0-preview.6-win-x64.msi
- 80DEC33663B740BF17371F21662FD891BE61C09F47C11A51404EC8EF9B3D716E
- PowerShell-7.2.0-preview.6-win-x64.zip
- 8A01D47957CE8C6D07B1F322754BAB030E2EB4FF9DFB95819A46ECC1273455D3
- PowerShell-7.2.0-preview.6-win-x86.msi
- 2F07FF917429CB4842CD2AD16FB6C96951300B55E32C75271846A7265B27B3DB
- PowerShell-7.2.0-preview.6-win-x86.zip
- 8289B53CB0B705F98FF3ED79A3DF2F9C5397DB2CFE9C0631E9F42014855FE63E
- powershell-preview_7.2.0-preview.6-1.deb_amd64.deb
- 5565B2B4E1A9D140225923852EE535F324B5D52600414B1C7A3617999B1A0593
- powershell-preview-7.2.0_preview.6-1.rh.x86_64.rpm
- 1C942D104C3F1CFAEAA49B01479DD6DBB05CCF2DC166F79C517B188C118BF5EF