diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be6d977..1d3e561 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,7 @@ jobs: os: [ubuntu] shell: [pwsh] version: + - '7.5.0' - '7.4.0' # And test all built-in PowerShell/Windows Powershell versions on latest CI runner images include: diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c0fe9..7dd2fa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## Unreleased +### Breaking changes + +- Drop support for PowerShell 7.2 and 7.3 ([#71](https://github.com/getsentry/sentry-powershell/pull/71)) + +### Features + +- Add support for PowerShell 7.5 ([#76](https://github.com/getsentry/sentry-powershell/pull/76)) + ### Dependencies - 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)) diff --git a/dependencies/download.ps1 b/dependencies/download.ps1 index 9390ced..ab92dff 100644 --- a/dependencies/download.ps1 +++ b/dependencies/download.ps1 @@ -110,6 +110,7 @@ function Download([string] $dependency, [string] $TFM, [string] $targetTFM = $nu } Download -Dependency 'Sentry' -TFM 'net8.0' +Download -Dependency 'Sentry' -TFM 'net9.0' Download -Dependency 'Sentry' -TFM 'net462' # You can see the list of dependencies that are actually used in sentry-dotnet/src/Sentry/bin/Debug/net462 diff --git a/modules/Sentry/private/Get-SentryAssembliesDirectory.ps1 b/modules/Sentry/private/Get-SentryAssembliesDirectory.ps1 index 277fd5a..327c935 100644 --- a/modules/Sentry/private/Get-SentryAssembliesDirectory.ps1 +++ b/modules/Sentry/private/Get-SentryAssembliesDirectory.ps1 @@ -1,16 +1,20 @@ function GetTFM { - # Source https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.4#net-framework-vs-net-core - # Also https://learn.microsoft.com/en-us/powershell/scripting/install/powershell-support-lifecycle?view=powershell-7.4#powershell-end-of-support-dates - # PowerShell 7.4 (LTS-current) - Built on .NET 8.0 + # Source https://learn.microsoft.com/en-us/powershell/scripting/install/powershell-support-lifecycle?view=powershell-7.4#powershell-end-of-support-dates + # PowerShell 7.5 - Built on .NET 9.0 + # PowerShell 7.4 (LTS) - Built on .NET 8.0 # PowerShell 7.3 - Built on .NET 7.0 - # PowerShell 7.2 (LTS) - Built on .NET 6.0 (LTS-current) + # PowerShell 7.2 (LTS) - Built on .NET 6.0 # PowerShell 7.1 - Built on .NET 5.0 - # PowerShell 7.0 (LTS) - Built on .NET Core 3.1 (LTS) + # PowerShell 7.0 (LTS) - Built on .NET Core 3.1 # PowerShell 6.2 - Built on .NET Core 2.1 # PowerShell 6.1 - Built on .NET Core 2.1 # PowerShell 6.0 - Built on .NET Core 2.0 - if ($PSVersionTable.PSVersion -ge '7.4') + if ($PSVersionTable.PSVersion -ge '7.5') + { + return 'net9.0' + } + elseif ($PSVersionTable.PSVersion -ge '7.4') { return 'net8.0' }