open-telemetry / opentelemetry-dotnet

The OpenTelemetry .NET Client
https://opentelemetry.io
Apache License 2.0
3.23k stars 765 forks source link

Convert all NET7_0_OR_GREATER and NET8_0_OR_GREATER preprocessor directives to NET #5848

Closed rajkumar-rangaraj closed 1 month ago

rajkumar-rangaraj commented 1 month ago

It can be follow up, but you can potentially include it also here. Review alle conditional compilation. At least NET7_0_OR_GREATER and NET8_0_OR_GREATER. I think that all of them can be converted just to NET. There were decision to simplify condition where possible and remove exact versions.

Originally posted by @Kielek in https://github.com/open-telemetry/opentelemetry-dotnet/pull/5832#pullrequestreview-2314388778