|
1 | 1 | --- |
2 | 2 | title: What's New in PowerShell 7.5 |
3 | 3 | description: New features and changes released in PowerShell 7.5 |
4 | | -ms.date: 01/23/2025 |
| 4 | +ms.date: 01/29/2025 |
5 | 5 | --- |
6 | 6 |
|
7 | 7 | # What's New in PowerShell 7.5 |
8 | 8 |
|
9 | 9 | PowerShell 7.5.0 includes the following features, updates, and breaking changes. PowerShell |
10 | 10 | 7.5 is built on .NET 9.0.1 GA release. |
11 | 11 |
|
12 | | -For a complete list of changes, see the [CHANGELOG][chg] in the GitHub repository. |
| 12 | +For a complete list of changes, see the [CHANGELOG][chg] in the GitHub repository. For more |
| 13 | +information about .NET 9, see [What's new in .NET 9][07]. |
13 | 14 |
|
14 | 15 | ## Breaking Changes |
15 | 16 |
|
@@ -134,14 +135,6 @@ Many thanks to **@ArmaanMcleod** and others for all their work to improve tab co |
134 | 135 | namespaces ([#21162][21162]) |
135 | 136 | - Handle global tool specially when prepending `$PSHome` to PATH ([#24228][24228]) |
136 | 137 |
|
137 | | -## New features inherited from .NET 9 |
138 | | - |
139 | | -New features in .NET 9 can be found here: |
140 | | -[https://learn.microsoft.com/dotnet/core/whats-new/dotnet-9/overview](https://learn.microsoft.com/dotnet/core/whats-new/dotnet-9/overview). |
141 | | -Here are some highlights that might be good to know about for PowerShell users: |
142 | | - |
143 | | -- UUID v7 support with [`[guid]::CreateVersion7()`][100] |
144 | | - |
145 | 138 | ## Experimental features |
146 | 139 |
|
147 | 140 | The following experimental features were converted to mainstream features in |
@@ -197,25 +190,25 @@ $tests = @{ |
197 | 190 | $groupResult = foreach($test in $tests.GetEnumerator()) { |
198 | 191 | $ms = (Measure-Command { & $test.Value -Count $_ }).TotalMilliseconds |
199 | 192 |
|
200 | | -[pscustomobject]@{ |
201 | | - CollectionSize = $_ |
202 | | - Test = $test.Key |
203 | | - TotalMilliseconds = [math]::Round($ms, 2) |
204 | | -} |
| 193 | + [pscustomobject]@{ |
| 194 | + CollectionSize = $_ |
| 195 | + Test = $test.Key |
| 196 | + TotalMilliseconds = [math]::Round($ms, 2) |
| 197 | + } |
205 | 198 |
|
206 | | -[GC]::Collect() |
207 | | - [GC]::WaitForPendingFinalizers() |
208 | | -} |
| 199 | + [GC]::Collect() |
| 200 | + [GC]::WaitForPendingFinalizers() |
| 201 | + } |
209 | 202 |
|
210 | | -$groupResult = $groupResult | Sort-Object TotalMilliseconds |
211 | | - $groupResult | Select-Object *, @{ |
212 | | - Name = 'RelativeSpeed' |
213 | | - Expression = { |
214 | | - $relativeSpeed = $_.TotalMilliseconds / $groupResult[0].TotalMilliseconds |
215 | | - $speed = [math]::Round($relativeSpeed, 2).ToString() + 'x' |
216 | | - if ($speed -eq '1x') { $speed } else { $speed + ' slower' } |
217 | | - } |
218 | | - } | Format-Table -AutoSize |
| 203 | + $groupResult = $groupResult | Sort-Object TotalMilliseconds |
| 204 | + $groupResult | Select-Object *, @{ |
| 205 | + Name = 'RelativeSpeed' |
| 206 | + Expression = { |
| 207 | + $relativeSpeed = $_.TotalMilliseconds / $groupResult[0].TotalMilliseconds |
| 208 | + $speed = [math]::Round($relativeSpeed, 2).ToString() + 'x' |
| 209 | + if ($speed -eq '1x') { $speed } else { $speed + ' slower' } |
| 210 | + } |
| 211 | + } | Format-Table -AutoSize |
219 | 212 | } |
220 | 213 | ``` |
221 | 214 |
|
@@ -265,8 +258,7 @@ CollectionSize Test TotalMilliseconds RelativeSpeed |
265 | 258 | [04]: ../learn/experimental-features.md#psmoduleautoloadskipofflinefiles |
266 | 259 | [05]: ../learn/experimental-features.md#psredirecttovariable |
267 | 260 | [06]: ../learn/experimental-features.md#psserializejsonlongenumasnumber |
268 | | - |
269 | | -[100]: https://learn.microsoft.com/dotnet/api/system.guid.createversion7?view=net-9.0 |
| 261 | +[07]: /dotnet/core/whats-new/dotnet-9/overview) |
270 | 262 |
|
271 | 263 | [19896]: https://github.com/PowerShell/PowerShell/pull/19896 |
272 | 264 | [20014]: https://github.com/PowerShell/PowerShell/pull/20014 |
|
0 commit comments