Skip to content

Return PrivateAssets="all" to System.Threading.Channels - #12834

Merged
YuliiaKovalova merged 1 commit into
mainfrom
exp/ykovalova/add_private_assets
Nov 26, 2025
Merged

YuliiaKovalova merged 1 commit into
mainfrom
exp/ykovalova/add_private_assets

Conversation

@YuliiaKovalova

Copy link
Copy Markdown
Member

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)

{73BEA632-1FBE-430A-A631-77FAD57A36E2}

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread src/Tasks/Microsoft.Build.Tasks.csproj Resolved
Comment thread src/Tasks/Microsoft.Build.Tasks.csproj Resolved
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.

3 participants