v7.2.0-preview.9
版本发布时间: 2021-08-24 02:34:52
PowerShell/PowerShell最新发布版本:v7.4.6(2024-10-23 06:18:57)
7.2.0-preview.9 - 2021-08-23
Note: Known issue about ANSI code being written out in table views when using PowerShell with a legacy host that doesn't support virtual terminal. For details see: #15978
Breaking Changes
- Change the default value of
$PSStyle.OutputRendering
toOutputRendering.Host
and removeOutputRendering.Automatic
(#15882) - Fix
CA1052
for public API to make classes static when they only have static methods (#15775) (Thanks @xtqqczze!) - Update
pwsh.exe -File
to only accept.ps1
script files on Windows (#15859)
Engine Updates and Fixes
- Update .NET adapter to handle interface static members properly (#15908)
- Catch and handle unauthorized access exception when removing AppLocker test files (#15881)
General Cmdlet Updates and Fixes
- Add
-PassThru
parameter toSet-Clipboard
(#13713) (Thanks @ThomasNieto!) - Add
-Encoding
parameter forTee-Object
(#12135) (Thanks @Peter-Schneider!) - Update
ConvertTo-Csv
andExport-Csv
to handleIDictionary
objects (#11029) (Thanks @vexx32!) - Update the parameters
-Exception
and-ErrorRecord
forWrite-Error
to be position 0 (#13813) (Thanks @ThomasNieto!) - Don't use
ArgumentList
when creating COM object withNew-Object
as it's not applicable to the COM parameter set (#15915) - Fix
$PSStyle
list output to correctly showTableHeader
(#15928) - Remove the
PSImplicitRemotingBatching
experimental feature (#15863) - Fix issue with
Get-Process -Module
failing to stop when it's piped toSelect-Object
(#15682) (Thanks @ArmaanMcleod!) - Make the experimental features
PSUnixFileStat
,PSCultureInvariantReplaceOperator
,PSNotApplyErrorActionToStderr
,PSAnsiRendering
,PSAnsiProgressFeatureName
stable (#15864) - Enhance
Remove-Item
to work with OneDrive (#15571) (Thanks @iSazonov!) - Make global tool entrypoint class static (#15880)
- Update
ServerRemoteHost
version to be same asPSVersion
(#15809) - Make the initialization of
HttpKnownHeaderNames
thread safe (#15519) (Thanks @iSazonov!) -
ConvertTo-Csv
: Quote fields with quotes and newlines when using-UseQuotes AsNeeded
(#15765) (Thanks @lselden!) - Forwarding progress stream changes from
Foreach-Object -Parallel
runspaces (#14271) (Thanks @powercode!) - Add validation to
$PSStyle
to reject printable text when setting a property that only expects ANSI escape sequence (#15825)
Code Cleanup
We thank the following contributors!
@xtqqczze
- Avoid unneeded array allocation in module code (#14329) (Thanks @xtqqczze!)
- Enable and fix analysis rules
CA1052
,CA1067
, andIDE0049
(#15840) (Thanks @xtqqczze!) - Avoid unnecessary allocation in formatting code (#15832) (Thanks @xtqqczze!)
- Specify the analyzed API surface for all code quality rules (#15778) (Thanks @xtqqczze!)
Tools
- Enable
/rebase
to automatically rebase a PR (#15808) - Update
.editorconfig
to not replace tabs with spaces in.tsv
files (#15815) (Thanks @SethFalco!) - Update PowerShell team members in the change log generation script (#15817)
Tests
- Add more tests to validate the current command error handling behaviors (#15919)
- Make
Measure-Object
property test independent of the file system (#15879) - Add more information when a
syslog
parsing error occurs (#15857) - Harden logic when looking for
syslog
entries to be sure that we select based on the process id (#15841)
Build and Packaging Improvements
We thank the following contributors!
@xtqqczze
- Disable implicit namespace imports for test projects (#15895)
- Update language version to 10 and fix related issues (#15886)
- Update
CodeQL
workflow to use Ubuntu 18.04 (#15868) - Bump the version of various packages (#15944, #15934, #15935, #15891, #15812, #15822) (Thanks @xtqqczze!)
Documentation and Help Content
- Update
README
andmetadata files
for releasev7.2.0-preview.8
(#15819) - Update change logs for 7.0.7 and 7.1.4 (#15921)
- Fix spelling in XML docs (#15939) (Thanks @slowy07!)
- Update PowerShell Committee members (#15837)
SHA256 Hashes of the release artifacts
- powershell-7.2.0-preview.9-linux-alpine-x64.tar.gz
- 295E51338ACF93E3A451273287723FF7EE81B96D89738BE88AE97B62B202DE11
- powershell-7.2.0-preview.9-linux-arm32.tar.gz
- 707CC256E84A598E2D07498662A2025C73F0D92AB9AA3EA94536CC5507ACB6D0
- powershell-7.2.0-preview.9-linux-arm64.tar.gz
- 30A4F87E1DE6FFD8A0DFF86C7D7A124A4FF89B30D8F522EAF3580192F2EB517B
- powershell-7.2.0-preview.9-linux-x64.tar.gz
- FB6DB25B6B9EC7825C3856A4FA39099F8C5C62CAF59AFF358605ADDF9AF21911
- powershell-7.2.0-preview.9-linux-x64-fxdependent.tar.gz
- 0906716582D40FC233E1A8D65AE2577A9720BC766BAA09EFCE345C0FDE923F5B
- powershell-7.2.0-preview.9-osx-arm64.pkg
- 9C13ED1CA21902D658ADE978C5EAE4F6CED09AE906563BE4B595616C3B964E66
- powershell-7.2.0-preview.9-osx-arm64.tar.gz
- CF770A211EBA8C9DFE03043D5E25D2757CCE04A3D831612BE8E77203BE46A733
- powershell-7.2.0-preview.9-osx-x64.pkg
- 1DFE292EFEAA3B8E7E60C3353C874354CAD8C78C2049745B0EAC5560CD3D6D12
- powershell-7.2.0-preview.9-osx-x64.tar.gz
- BBDE327FCD23F77B9E8D17547151EC4F3D76B6C9E718F47540BF71056A841B4F
- PowerShell-7.2.0-preview.9-win-arm32.zip
- 15D172FA935BA3DC56F4FB2EACED423AA13CC9C2604B2BBF35729CECF253C3DF
- PowerShell-7.2.0-preview.9-win-arm64.zip
- D1B895EA68CE041F7B1F6B0B502C28B8972B515D74D0E88581FF1A966435EDD5
- PowerShell-7.2.0-preview.9-win-fxdependent.zip
- 0CE96B9DDF37F177488DEE7EC4A77017B57FEDD7A13957CCBC7BBF488FC1D732
- PowerShell-7.2.0-preview.9-win-fxdependentWinDesktop.zip
- 3DE03991CDA459FD59665D1ED2C9BE3264FAA35F076659131E5C41DA6DE7D077
- PowerShell-7.2.0-preview.9-win-x64.msi
- 380ADD7B04A0AB02EAEBD2A761DDC14EEE10AEA1F6311EDE79849FC68D765531
- PowerShell-7.2.0-preview.9-win-x64.zip
- ED648B3EE61EE7CF2B6532F6095BB77CEEF395392CC9872C84C938C628A97EF9
- PowerShell-7.2.0-preview.9-win-x86.msi
- 8D7D20CCF598F728514374BB9AC2480E098936DC974C7C4C1272E6B770CF4C2F
- PowerShell-7.2.0-preview.9-win-x86.zip
- B85C0352A9404CDE9C2AF959921A3FBC85972692AFD0DA13E7B6C1284E5DE30C
- powershell-preview_7.2.0-preview.9-1.deb_amd64.deb
- 7A28A1D06C3790F9CB1B5FE7BF5DF1A72BF01F8DCAA9BED1C53656739D53C64C
- powershell-preview-7.2.0_preview.9-1.rh.x86_64.rpm
- 711D091F235123D8AC6CCA09E59A2571951068955859845E5A84ED7A39B5DFD3
1、 powershell-7.2.0-preview.9-linux-alpine-x64.tar.gz 60.95MB
2、 powershell-7.2.0-preview.9-linux-arm32.tar.gz 59.07MB
3、 powershell-7.2.0-preview.9-linux-arm64.tar.gz 57.74MB
4、 powershell-7.2.0-preview.9-linux-x64-fxdependent.tar.gz 20.64MB
5、 powershell-7.2.0-preview.9-linux-x64.tar.gz 61.87MB
6、 powershell-7.2.0-preview.9-osx-arm64.pkg 56.7MB
7、 powershell-7.2.0-preview.9-osx-arm64.tar.gz 56.53MB
8、 powershell-7.2.0-preview.9-osx-x64.pkg 59.99MB
9、 powershell-7.2.0-preview.9-osx-x64.tar.gz 59.81MB
10、 PowerShell-7.2.0-preview.9-win-arm32.zip 62.99MB
11、 PowerShell-7.2.0-preview.9-win-arm64.zip 63.28MB
12、 PowerShell-7.2.0-preview.9-win-fxdependent.zip 21.92MB
13、 PowerShell-7.2.0-preview.9-win-fxdependentWinDesktop.zip 20.7MB
14、 PowerShell-7.2.0-preview.9-win-x64.msi 97.98MB
15、 PowerShell-7.2.0-preview.9-win-x64.zip 99.47MB
16、 PowerShell-7.2.0-preview.9-win-x86.msi 89.66MB
17、 PowerShell-7.2.0-preview.9-win-x86.zip 91.04MB
18、 powershell-preview-7.2.0_preview.9-1.rh.x86_64.rpm 62.72MB
19、 powershell-preview_7.2.0-preview.9-1.deb_amd64.deb 61.9MB