Repository navigation
Return PrivateAssets="all" to System.Threading.Channels - #12834
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a performance regression in Visual Studio scenarios by restoring the PrivateAssets="all" attribute to the System.Threading.Channels package reference. The attribute was inadvertently removed in a previous commit when the reference was reorganized, causing the dependency to be publicly exposed and loaded unnecessarily in VS debugging scenarios.
Key Change:
- Adds
PrivateAssets="all"to System.Threading.Channels PackageReference to prevent it from being exposed to consumers
JanProvaznik
approved these changes
Nov 26, 2025
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 #
Regression in VS perf tests
Context
In scope of this commit f62465c#diff-bbcd69b169631ba90e590372d9064ceda7093fe5a52e5a626352366c639091a9
System.Threading.Channels reference was moved to the different section without "PrivateAssets="all" attribute. It caused the excessive reference loading in some of VS scenarious.
Changes Made
Return PrivateAssets="all" to the reference.
Testing
Experimental insertion looks good: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/691054 (the loading of System.Threading.Channels went away for test ManagedLangsVS64.Debugging.0600.Stop Debugging.VM_AdjustedImagesInMemory_Total_devenv)