Support .NET 11#6899
Draft
martincostello wants to merge 81 commits into
Draft
Conversation
martincostello
commented
Feb 15, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6899 +/- ##
==========================================
- Coverage 90.21% 90.18% -0.04%
==========================================
Files 287 287
Lines 15560 15575 +15
==========================================
+ Hits 14038 14046 +8
- Misses 1522 1529 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
martincostello
added a commit
to martincostello/opentelemetry-dotnet
that referenced
this pull request
Feb 15, 2026
Update some references to .NET 8 to .NET 10 that were flushed out while working on open-telemetry#6899.
4 tasks
- Add support for building and testing with .NET 11, initially using .NET 11 preview 1. - Add `net11.0` TFMs. - Drop `net8.0` and `net9.0` TFMs. - Add workarounds for some issues pending their fixes.
Update System.Diagnostics.DiagnosticSource to 11.0.* that was missed in the previous commit and fix some missed analyzer warnings.
Copy-paste mistake.
Fix `NU1510` warning caused by workaround for aspnetcore issue.
Update CompatibilitySuppressions for .NET 11.
71abd0d to
f361c14
Compare
Update to preview 2 of .NET 11.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Member
Author
|
Commit that should fix all the warnings just pushed. Will make a version targeting |
Fix-up tests to handle `ActivityTraceFlags.RandomTraceId`.
Update benchmarks to use `net11.0`.
Fix new code analysis warnings by using pattern matching.
Update to preview 5 of .NET 11.
Fix IDE0027 warning.
- Update compatibility suppressions. - Add Prometheus snapshot.
4 tasks
Set the `SOURCE_DATE_EPOCH` to the date of the checked-out Git commit to use for NuGet's `DeterministicTimestamp` in .NET 11.
Populate switch statement to fix new analyser warning.
Suppress IDE0066 as otherwise it makes the code hard to read.
Use pattern matching.
martincostello
commented
Jun 24, 2026
Add missing override for newly added package.
Restore removed blank line.
Fix new IDE0061 warnings.
Fix new code analysis warnings from merge with main.
Fix new code analysis warnings after merge with main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The intention is to keep this PR updated over the course of .NET 11's development as new previews are released.
Changes
Add support for building and testing with .NET 11.
net11.0targetnet8.0andnet9.0targetsTODO
11.0-preview)Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial changes