Skip to content

Respect the profile attribute on runtime packs - #39402

Merged
LakshanF merged 8 commits into
dotnet:mainfrom
LakshanF:UseWinForms
Apr 10, 2024
Merged

LakshanF merged 8 commits into
dotnet:mainfrom
LakshanF:UseWinForms

Conversation

@LakshanF

@LakshanF LakshanF commented Mar 11, 2024 •

Copy link
Copy Markdown
Contributor

Partial fix for #37088, Need the windows desktop runtime pack changes, 4227, to flow for this change to take effect.

Add the existing knownFrameworkReference profile to the RuntimeFramework at the ProcessFrameworkReferences task. This matches the existing mechanism to add the profile to the target pack there. At the ResolveRuntimePackAssets, use the RuntimeFrameworks, FrameworkReferences, and the ResolvedRuntimePacks to find the correct profile if it exists, for the specific ResolvedRuntimePack. Use this profile to filter the correct set of files from the RuntimeList.xml in the runtime pack.

@LakshanF LakshanF self-assigned this Mar 11, 2024
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Mar 11, 2024
@LakshanF
LakshanF marked this pull request as draft March 11, 2024 14:47
@LakshanF
LakshanF requested review from dsplaisted and sbomer March 11, 2024 14:48
@LakshanF LakshanF closed this Mar 28, 2024
@LakshanF LakshanF reopened this Mar 28, 2024
@LakshanF
LakshanF marked this pull request as ready for review April 2, 2024 17:44
@LakshanF
LakshanF requested a review from a team as a code owner April 4, 2024 16:51
@LakshanF
LakshanF merged commit dd5846a into dotnet:main Apr 10, 2024
rainersigwald added a commit to rainersigwald/sdk that referenced this pull request Jun 26, 2026
Copilot analysis of an allocation regression when inserting .NET SDK 11
into Visual Studio and building OrchardCore pointed to a 43× increase
in `Slot[TaskItem][]` allocations in `ResolveTargetingPackAssets`.

The cache key introduced in dotnet#53944 added _all_ metadata to the cache
identity. That includes the computed metadatum `DefiningProjectFullPath`
that's distinct for every project, which caused spurious cache
invalidation.

Just reverting it didn't look quite right as another possibly-relevant
metadatum was added in dotnet#39402. Added that and put comments in both
places to hopefully avoid future drift.
rainersigwald added a commit that referenced this pull request Jun 29, 2026
Copilot analysis of an allocation regression when inserting .NET SDK 11
into Visual Studio and building OrchardCore pointed to a 43× increase
in `Slot[TaskItem][]` allocations in `ResolveTargetingPackAssets`.

The cache key change in #53944 added _all_ metadata to the cache
identity. That includes the computed metadatum `DefiningProjectFullPath`
that's distinct for every project, which caused spurious cache
invalidation.

Just reverting it didn't look quite right as another possibly-relevant
metadatum was added in #39402. Added that and put comments in both
places to hopefully avoid future drift.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants