Skip to content

Conversation

stevejgordon
Copy link
Contributor

Fixes #2657
Fixes #2445

This adds a netstandard2.1 target so that features such as OTel bridge are available on older runtimes, even though those are out of support. This prevents an update of our package, without a runtime update, breaking/removing features. Features may still not be 100% compatible with older unsupported runtimes, but should work in general.

As part of this, I updated the minimum dependency for System.Diagnostics.DiagnosticSource which is no generally 8.0.0. We still ship a version of Elastic.Apm and loader for the Startup hooks zip file which are built against 6.0.0. These support older unsupported runtimes although with no official testing.

Compiler pre-processor directives now prefer NET over a specific .NET version. We also add NETSTANDARD2_1 so that features continue to work on older runtimes without a specific .NET target, i.e. 6 and 7.

Copy link

github-actions bot commented Oct 6, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link

github-actions bot commented Oct 6, 2025

🔍 Preview links for changed docs

@stevejgordon
Copy link
Contributor Author

I updated to the .NET 9 SDK and that I suspect is triggering the new formatting warnings, but I'm not entirely sure why. Will work on resolving those.

@stevejgordon stevejgordon force-pushed the 2657-netstandard branch 2 times, most recently from 8d5b054 to 5ddfaca Compare October 6, 2025 15:39
@stevejgordon stevejgordon reopened this Oct 7, 2025
@stevejgordon
Copy link
Contributor Author

Working on the test failures. The IIS ones suggest we might still have to ship an older DiagnosticsSource build too, although I need to investigate why exactly based on our packaging process.

@stevejgordon stevejgordon force-pushed the 2657-netstandard branch 7 times, most recently from 067043d to b99f3da Compare October 10, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants