Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions dependencies/download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions modules/Sentry/private/Get-SentryAssembliesDirectory.ps1
Original file line number Diff line number Diff line change
@@ -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'
}
Expand Down
Loading