Skip to content

Update System.Diagnostics.PerformanceCounter to remove System.Drawing.Common transitive dependency - #2783

Merged
stevejgordon merged 2 commits into
mainfrom
fix/performance-counter-dependencies
Jul 14, 2026
Merged

stevejgordon merged 2 commits into
mainfrom
fix/performance-counter-dependencies

Conversation

@stevejgordon

@stevejgordon stevejgordon commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2779

Summary

Bumping to 8.0.1 removes the System.Drawing.Common transitive chain (Security.Permissions -> Windows.Extensions -> Drawing.Common) from all resolved dependency graphs. This is safe for all supported TFMs and runtimes.

@github-actions

Copy link
Copy Markdown

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@stevejgordon
stevejgordon force-pushed the fix/performance-counter-dependencies branch from d14b2d9 to e453153 Compare July 14, 2026 10:02
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
stevejgordon force-pushed the fix/performance-counter-dependencies branch from e453153 to b11ca3d Compare July 14, 2026 10:42
@stevejgordon stevejgordon changed the title fix: bump System.Diagnostics.PerformanceCounter to remove System.Drawing.Common transitive dependency Update System.Diagnostics.PerformanceCounter to remove System.Drawing.Common transitive dependency Jul 14, 2026
@stevejgordon
stevejgordon requested a review from a team July 14, 2026 11:41
@stevejgordon
stevejgordon merged commit 9676d0b into main Jul 14, 2026
19 checks passed
@stevejgordon
stevejgordon deleted the fix/performance-counter-dependencies branch July 14, 2026 12:07
@holly-hacker

holly-hacker commented Jul 14, 2026 •

Copy link
Copy Markdown

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.

@stevejgordon

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump System.Diagnostics.PerformanceCounter to version without insecure dependencies

4 participants