Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add net9.0 support #3699

Merged
merged 37 commits into from
Nov 3, 2024
Merged

Add net9.0 support #3699

merged 37 commits into from
Nov 3, 2024

Conversation

jamescrosswell
Copy link
Collaborator

@jamescrosswell jamescrosswell commented Oct 22, 2024

Fixes #3484 (comment)

Notes for Reviewers

Mostly just a version bump, but with various domino effects:

  • We started running out of space on our runners, so includes various workarounds to free up disk space on ubuntu and macos
  • The analysers in net9.0 raised various new vulnerability warnings that had to be dealt with either by bumping dependencies or ignoring warnings
  • Had to work around some contention issues with LocalDb

Device Tests

  • When targeting net8.0-android, trimming has to be disabled. We had it enabled implicitly by setting IsAotCompatible = true for net8.0+ when FrameworkSupportsAot == true. That property has been renamed to EnableAot and we now override this and set it to false when running the android device tests.
  • To get the iOS device tests running on arm, an x64 runtime identifier had to be used
  • To get the iOS device tests to run against net8.0-ios, the interpreter has to be enabled explicitly (presumably the default for this was changed between net7.0-ios and net8.0-ios
  • Disabled some flaky tests

Directory.Build.props Outdated Show resolved Hide resolved
@jamescrosswell jamescrosswell marked this pull request as ready for review October 31, 2024 07:50
Copy link
Contributor

@bricefriha bricefriha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing stuff James, thank you!

@@ -13,7 +13,9 @@
- `Scope.Transaction` is now always stored as an `AsyncLocal` also in [Global Mode](https://docs.sentry.io/platforms/dotnet/configuration/options/#is-global-mode-enabled), to prevent auto-instrumented spans from the UI ending up parented to transactions from a background task (or vice versa). ([#3596](https://github.com/getsentry/sentry-dotnet/pull/3596))
- Sentry's Experimental Metrics feature has been deprecated and removed from the SDK. ([#3718](https://github.com/getsentry/sentry-dotnet/pull/3718))

## Unreleased
### Features
- Added support for `.NET 9` (preview) ([#3699](https://github.com/getsentry/sentry-dotnet/pull/3699))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Added support for `.NET 9` (preview) ([#3699](https://github.com/getsentry/sentry-dotnet/pull/3699))
- Added support for `.NET 9` (preview) ([#3699](https://github.com/getsentry/sentry-dotnet/pull/3699))

@@ -13,6 +13,12 @@

<!-- Allow references to unsigned assemblies (like MAUI) from signed projects -->
<NoWarn>$(NoWarn);CS8002</NoWarn>

<!-- We need to support old stuff. Applications should definitely address these advisory warnings though. -->
<NoWarn>$(NoWarn);NU1903</NoWarn>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a major, it's a good time to review the lowest we support and bump some a bit (not necessarily to latest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants