-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Core] Upgrading dependency on System.Diagnostics.DiagnosticSource
#37418
Merged
Conversation
This file contains 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
API change check API changes are not detected in this pull request. |
pallavit
reviewed
Jul 5, 2023
m-redding
changed the title
[Core] Testing Upgrading Dependency
[Core] Upgrading Jul 6, 2023
System.Diagnostics.DiagnosticSource
m-redding
changed the title
[Core] Upgrading
[Core] Upgrading dependency on Jul 6, 2023
System.Diagnostics.DiagnosticSource
System.Diagnostics.DiagnosticSource
m-redding
requested review from
hallipr,
weshaggard,
benbp,
JoshLove-msft,
christothes,
annelo-msft and
KrzysztofCwalina
as code owners
July 6, 2023 23:25
KrzysztofCwalina
approved these changes
Jul 7, 2023
jsquire
approved these changes
Jul 7, 2023
christothes
approved these changes
Jul 7, 2023
m-redding
requested review from
cijothomas,
reyang,
rajkumar-rangaraj,
TimothyMothra and
vishweshbankwar
as code owners
July 7, 2023 17:27
m-redding
removed request for
cijothomas,
rajkumar-rangaraj,
reyang,
vishweshbankwar and
TimothyMothra
July 7, 2023 17:35
This was referenced Jul 13, 2023
11 tasks
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.DiagnosticSource
from4.6.0
to6.0.1
. It introduces multi-targeting for this package inAzure.Core
to keep4.6.0
for netcoreapp2.1.This PR also makes some necessary but unrelated changes to
MessageClientDiagnostics
due to build failures.Context
System.Diagnostics.DiagnosticSource
from4.6.0
to at least5.0.0
so that we can access the new types added in version5.0.0
directly rather than using reflection. There is more information in this issue.System.Diagnostics.DiagnosticSource 5.0.0
is deprecated, so we should only take a dependency on6.0.0
+6.0.1
from building because of a transitive dependency. The discussed solution is to multi-target with4.6.0
and use preprocessor directives.Functions considerations:
System.Diagnostics.DiagnosticSource 6.0.x
, so if we upgrade to6.0.1
we won't have any issues. Upgrading to7.0.2
would 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.1
with new versions of PowerShellOther considerations
System.Diagnostics.DiagnosticSource 4.6.0
from theAzure.Core 1.33
package. 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.