Engine Updates and Fixes
General Cmdlet Updates and Fixes
- Add a Windows mode to $PSNativeCommandArgumentPassing that allows some commands to use legacy argument passing (#15408)
- Use nameof to get parameter names when creating ArgumentNullException (#15604) (Thanks @gukoff!)
- Test if a command is 'Out-Default' more thoroughly for transcribing scenarios (#15653)
- Add Microsoft.PowerShell.Crescendo to telemetry allow list (#15372)
Code Cleanup
- Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output (#14406)
- Highlight using error color the exception Message and underline in PositionMessage for Get-Error (#15786)
- Implement a completion for View parameter of format cmdlets (#14513) (Thanks @iSazonov!)
- Add support to colorize FileInfo file names (#14403)
- Don't serialize to JSON ETS properties for DateTime and string types (#15665)
- Fix HyperVSocketEndPoint.ServiceId setter (#15704) (Thanks @xtqqczze!)
- Add DetailedView to $ErrorView (#15609)
We thank the following contributors!
@iSazonov, @xtqqczze
Tools
- Remove consolehost.proto file (#15741) (Thanks @iSazonov!)
- Implement IDisposable for ConvertToJsonCommand (#15787) (Thanks @xtqqczze!)
- Fix IDisposable implementation for CommandPathSearch (#15793) (Thanks @xtqqczze!)
- Delete IDE dispose analyzer rules (#15798) (Thanks @xtqqczze!)
- Seal private classes (#15725) (Thanks @xtqqczze!)
- Enable IDE0029: UseCoalesceExpression (#15770) (Thanks @xtqqczze!)
- Enable IDE0070: UseSystemHashCode (#15715) (Thanks @xtqqczze!)
- Enable IDE0030: UseCoalesceExpressionForNullable (#14289) (Thanks @xtqqczze!)
- Fix CA1846 and CA1845 for using AsSpan instead of Substring (#15738)
- Use List<T>.RemoveAll to avoid creating temporary list (#15686) (Thanks @xtqqczze!)
- Enable IDE0044: MakeFieldReadonly (#13880) (Thanks @xtqqczze!)
- Disable IDE0130 (#15728) (Thanks @xtqqczze!)
- Make classes sealed (#15675) (Thanks @xtqqczze!)
- Enable CA1043: Use integral or string argument for indexers (#14467) (Thanks @xtqqczze!)
- Enable CA1812 (#15674) (Thanks @xtqqczze!)
- Replace Single with First when we know the element count is 1 (#15676) (Thanks @xtqqczze!)
- Skip analyzers for Microsoft.Management.UI.Internal (#15677) (Thanks @xtqqczze!)
- Fix CA2243: Attribute string literals should parse correctly (#15622) (Thanks @xtqqczze!)
- Enable CA1401 (#15621) (Thanks @xtqqczze!)
- Fix CA1309: Use ordinal StringComparison in Certificate Provider (#14352) (Thanks @xtqqczze!)
- Fix CA1839: Use Environment.ProcessPath (#15650) (Thanks @xtqqczze!)
- Add new analyzer rules (#15620) (Thanks @xtqqczze!)
Tests
- Add SkipRoslynAnalyzers parameter to Start-PSBuild (#15640) (Thanks @xtqqczze!)
- Create issue template for issues updating PowerShell through Windows update. (#15700)
- Add DocumentationAnalyzers to build (#14336) (Thanks @xtqqczze!)
- Convert GitHub issue templates to modern forms (#15645)
Build and Packaging Improvements
- Add more tests for ConvertFrom-Json (#15706) (Thanks @strawgate!)
- Update glob-parent and hosted-git-info test dependencies (#15643)
Update .NET to version v6.0.0-preview.6
Documentation and Help Content
- Add new package name for osx-arm64 (#15813)
- Prefer version when available for dotnet-install (#15810)
- Make warning about MU being required dynamic (#15776)
- Add Start-PSBootstrap before running tests (#15804)
- Update to .NET 6 Preview 6 and use crossgen2 (#15763)
- Enable ARM64 packaging for macOS (#15768)
- Make Microsoft Update opt-out/in check boxes work (#15784)
- Add Microsoft Update opt out to MSI install (#15727)
- Bump NJsonSchema from 10.4.4 to 10.4.5 (#15769) (Thanks @dependabot[bot]!)
- Fix computation of SHA512 checksum (#15736)
- Update the script to use quality parameter for dotnet-install (#15731)
- Generate SHA512 checksum file for all packages (#15678)
- Enable signing daily release build with lifetime certificate (#15642)
- Update metadata and README for 7.2.0-preview.7 (#15593)
- Fix broken RFC links (#15807)
- Add to bug report template getting details from Get-Error (#15737)
- Update issue templates to link to new docs (#15711)
- Add @jborean93 to Remoting Working Group (#15683)
Read more: Release v7.2.0-preview.8 Release of PowerShell · PowerShell/PowerShell
How to Install PowerShell 7.1 in Windows 7, Windows 8, Windows 10, and Windows 11