Skip to content

Commit 4ff3184

Browse files
authored
feat: PowerShell 7.5 support (#76)
* ci: test on pwsh 7.5 * use net9 binaries on pwsh 7.5 * chore: update changelog * chore: fix changelog link
1 parent e57874a commit 4ff3184

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
os: [ubuntu]
4141
shell: [pwsh]
4242
version:
43+
- '7.5.0'
4344
- '7.4.0'
4445
# And test all built-in PowerShell/Windows Powershell versions on latest CI runner images
4546
include:

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## Unreleased
44

5+
### Breaking changes
6+
7+
- Drop support for PowerShell 7.2 and 7.3 ([#71](https://github.com/getsentry/sentry-powershell/pull/71))
8+
9+
### Features
10+
11+
- Add support for PowerShell 7.5 ([#76](https://github.com/getsentry/sentry-powershell/pull/76))
12+
513
### Dependencies
614

715
- Bump Dotnet SDK from v4.13.0 to v5.1.1 ([#71](https://github.com/getsentry/sentry-powershell/pull/71), [#78](https://github.com/getsentry/sentry-powershell/pull/78))

dependencies/download.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ function Download([string] $dependency, [string] $TFM, [string] $targetTFM = $nu
110110
}
111111

112112
Download -Dependency 'Sentry' -TFM 'net8.0'
113+
Download -Dependency 'Sentry' -TFM 'net9.0'
113114
Download -Dependency 'Sentry' -TFM 'net462'
114115

115116
# You can see the list of dependencies that are actually used in sentry-dotnet/src/Sentry/bin/Debug/net462

modules/Sentry/private/Get-SentryAssembliesDirectory.ps1

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
function GetTFM
22
{
3-
# Source https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.4#net-framework-vs-net-core
4-
# Also https://learn.microsoft.com/en-us/powershell/scripting/install/powershell-support-lifecycle?view=powershell-7.4#powershell-end-of-support-dates
5-
# PowerShell 7.4 (LTS-current) - Built on .NET 8.0
3+
# Source https://learn.microsoft.com/en-us/powershell/scripting/install/powershell-support-lifecycle?view=powershell-7.4#powershell-end-of-support-dates
4+
# PowerShell 7.5 - Built on .NET 9.0
5+
# PowerShell 7.4 (LTS) - Built on .NET 8.0
66
# PowerShell 7.3 - Built on .NET 7.0
7-
# PowerShell 7.2 (LTS) - Built on .NET 6.0 (LTS-current)
7+
# PowerShell 7.2 (LTS) - Built on .NET 6.0
88
# PowerShell 7.1 - Built on .NET 5.0
9-
# PowerShell 7.0 (LTS) - Built on .NET Core 3.1 (LTS)
9+
# PowerShell 7.0 (LTS) - Built on .NET Core 3.1
1010
# PowerShell 6.2 - Built on .NET Core 2.1
1111
# PowerShell 6.1 - Built on .NET Core 2.1
1212
# PowerShell 6.0 - Built on .NET Core 2.0
13-
if ($PSVersionTable.PSVersion -ge '7.4')
13+
if ($PSVersionTable.PSVersion -ge '7.5')
14+
{
15+
return 'net9.0'
16+
}
17+
elseif ($PSVersionTable.PSVersion -ge '7.4')
1418
{
1519
return 'net8.0'
1620
}

0 commit comments

Comments
 (0)