[Core] Upgrading dependency on System.Diagnostics.DiagnosticSource#37418
Merged
m-redding merged 8 commits intoAzure:mainfrom Jul 7, 2023
Merged
[Core] Upgrading dependency on System.Diagnostics.DiagnosticSource#37418m-redding merged 8 commits intoAzure:mainfrom
System.Diagnostics.DiagnosticSource#37418m-redding merged 8 commits intoAzure:mainfrom
Conversation
Collaborator
|
API change check API changes are not detected in this pull request. |
pallavit
reviewed
Jul 5, 2023
System.Diagnostics.DiagnosticSource
System.Diagnostics.DiagnosticSourceSystem.Diagnostics.DiagnosticSource
KrzysztofCwalina
approved these changes
Jul 7, 2023
jsquire
approved these changes
Jul 7, 2023
christothes
approved these changes
Jul 7, 2023
This was referenced Jul 13, 2023
11 tasks
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.
Summary of changes
These changes upgrade the global version of
System.Diagnostics.DiagnosticSourcefrom4.6.0to6.0.1. It introduces multi-targeting for this package inAzure.Coreto keep4.6.0for netcoreapp2.1.This PR also makes some necessary but unrelated changes to
MessageClientDiagnosticsdue to build failures.Context
System.Diagnostics.DiagnosticSourcefrom4.6.0to at least5.0.0so that we can access the new types added in version5.0.0directly rather than using reflection. There is more information in this issue.System.Diagnostics.DiagnosticSource 5.0.0is deprecated, so we should only take a dependency on6.0.0+6.0.1from building because of a transitive dependency. The discussed solution is to multi-target with4.6.0and use preprocessor directives.Functions considerations:
System.Diagnostics.DiagnosticSource 6.0.x, so if we upgrade to6.0.1we won't have any issues. Upgrading to7.0.2would break functions integration so we can't do that.PowerShell considerations
System.Diagnostics.DiagnosticSource 7.0.2, so we shouldn't have any issues with upgrading to6.0.1with new versions of PowerShellOther considerations
System.Diagnostics.DiagnosticSource 4.6.0from theAzure.Core 1.33package. The targets file here is adding the source code that is changed without pulling in the upgraded dependencies, hence why all sorts of builds will break if we introduce this change in one goContributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.