Skip to content
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 System.Diagnostics.DiagnosticSource to 5.0.0 (netcoreapp2.1)/ 6.0.1 #37198

Closed
wants to merge 4 commits into from

Conversation

m-redding
Copy link
Member

@m-redding m-redding commented Jun 23, 2023

This is the first piece of resolving #33683. Unfortunately, given the dependencies between packages, I don't think it's possible to upgrade the dependency and use the new types in the same release, or at the very least in the same PR. I think we may need to release with the upgraded dependency first and then merge in the rest of the work in this PR: #37149.

Initially, there were concerns about PowerShell and functions integrations when upgrading this dependency. After doing some research, the most recent versions of PowerShell 7 depend on the newest version of the System.Diagnostics.DiagnosticSource (7.*), so upgrading this dependency should not impact PowerShell integration.

In order to support both netcoreapp2.1 and the new types, we need to multitarget with 5.0.0. System.Diagnostics.DiagnosticSource 6.0.1 has a transitive dependency that does not support netcoreapp2.1. However, System.Diagnostics.DiagnosticSource 5.0.0 is deprecated, so we shouldn't take a dependency on that version anywhere else.

There are also some changes here to MessagingClientDiagnostics. This file was causing pipeline errors that needed some simple updates to fix.

This also contributes to: #35572

Contributing 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.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@m-redding m-redding changed the title [Core] Upgrading System.Diagnostics.DiagnosticSource to 5.0.0 (netcoreapp2.1)/ 6.0.1 (otherwise) [Core] Upgrading System.Diagnostics.DiagnosticSource to 5.0.0 (netcoreapp2.1)/ 6.0.1 Jun 26, 2023
@m-redding m-redding changed the title [Core] Upgrading System.Diagnostics.DiagnosticSource to 5.0.0 (netcoreapp2.1)/ 6.0.1 [Core] Upgrading System.Diagnostics.DiagnosticSource to 5.0.0 (netcoreapp2.1)/ 6.0.1 Jun 26, 2023
@m-redding m-redding marked this pull request as ready for review June 26, 2023 22:18
@JoshLove-msft JoshLove-msft requested a review from lmolkova June 27, 2023 17:02
@JoshLove-msft
Copy link
Member

Were we able to talk to someone from PowerShell to confirm that this change is okay for them?

@@ -68,7 +68,7 @@
<PackageReference Update="System.Memory.Data" Version="1.0.2" />
<PackageReference Update="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Update="System.Net.Http" Version="4.3.4" />
<PackageReference Update="System.Diagnostics.DiagnosticSource" Version="4.6.0" />
<PackageReference Update="System.Diagnostics.DiagnosticSource" Version="6.0.1" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did we land on this version vs 5.x?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.x is deprecated, so I don't think it would be ideal to take a dependency on it. 6.0.1 is the recommended 6.x version

@m-redding
Copy link
Member Author

Were we able to talk to someone from PowerShell to confirm that this change is okay for them?

I was able to touch base with someone on their team and they weren't aware of any issues that would arise from this change. The newest version of PowerShell 7 takes a dependency on System.Diagnostics.DiagnosticSource 7.0.2.

@m-redding m-redding closed this Jul 5, 2023
@m-redding m-redding deleted the mredding-upgrading-dependency-test branch June 10, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants