Repository navigation
Update System.Diagnostics.PerformanceCounter to remove System.Drawing.Common transitive dependency - #2783
Merged
Conversation
🤖 GitHub commentsJust comment with:
|
stevejgordon
force-pushed
the
fix/performance-counter-dependencies
branch
from
July 14, 2026 10:02
d14b2d9 to
e453153
Compare
The 6.0.x series of System.Diagnostics.PerformanceCounter pulls in System.Security.Permissions -> System.Windows.Extensions -> System.Drawing.Common as transitive dependencies on net8.0/netstandard consumers. Drawing.Common 6.0.0 is flagged by enterprise SCA scanners as an EOL dependency chain even without an active CVE.
stevejgordon
force-pushed
the
fix/performance-counter-dependencies
branch
from
July 14, 2026 10:42
e453153 to
b11ca3d
Compare
LikeTheSalad
approved these changes
Jul 14, 2026
jackshirazi
approved these changes
Jul 14, 2026
|
Thanks for the update! Is there any reason why 10.x packages aren't being used, as they are the latest LTS releases? They still support .NET 8 which is the oldest supported LTS version. Support for .NET 8 gets dropped in a few months as well. |
Contributor
Author
|
@holly-hacker We try to depend on the lowest reasonable dependency so as to not force consumers onto a newer package than they may want. Users with .NET 8 applications may not want 10.0.x dependencies. We take this approach we all dependencies to give consumers the wider choice. You of course can depend on 10.0.x to upgrade the application dependency. |
This was referenced Sep 1, 2026
This was referenced Oct 12, 2026
This was referenced Oct 26, 2026
This was referenced Nov 2, 2026
This was referenced Nov 9, 2026
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.
Fixes #2779
Summary
Bumping to 8.0.1 removes the
System.Drawing.Commontransitive chain (Security.Permissions->Windows.Extensions->Drawing.Common) from all resolved dependency graphs. This is safe for all supported TFMs and runtimes.