-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Azure.Monitor.OpenTelemetry.Exporter does not support net461 #33970
Comments
Turns out that <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> I leave it up to the owning team to decide if they want to seek an exception and change this to target net462 instead, or leave this "workaround" in place as-is and resolve this bug. |
Related conversation: open-telemetry/opentelemetry-dotnet#3448 |
We may want to explore this from .NET:
|
I cannot parse "unsupported .NETStandard compatible target frameworks." /s Since the APIs exists, maybe we can just not call them at runtime if we detect that they would have throw PlatfromNotSupportedException. |
This is what I do in Key Vault where the API is defined but may not be supported by net461. It requires runtime detection, however. In my case I'm using reflection (cryptography was the biggest area where netstandard2.0 claimed APIs but net461 (and, in some cases, net462) didn't actually define them), but there may be other plausible solutions depending on the scenario. |
Possibly there are other solutions, but I am not a fan of marking package as NS2 compliant and then saying that one of the "compatible frameworks" is not supported and so the build fails. If we could make it a warning, i.e. "On 461 OpenTelemetry will not work", then it would be ideal. |
I would defer to the dotnet team on this matter. net461 is compatible with netstandard2.0. net461 is also unsupported. Both of these statements are true.
I think this is reasonable and seems to be in line with what dotnet is doing. System.Diagnostics.DiagnosticSource v7.0.0 is throwing the build warning quoted above. This became an issue when using the |
I think this issue can be closed. |
When building everything in the
net - core - ci
pipeline, we found that Azure.Monitor.OpenTelemetry.Exporter tests, demos, and benchmarks are erring,Note that guidelines state:
Exceptions can be made - and in this case may have to since System.Diagnostics.DiagnosticSource does not support net461 - but that needs to be excluded from the build then.
The text was updated successfully, but these errors were encountered: