Skip to content

[draft] Implement ProcessFrameworkReferences in pure MSBuild#52396

Draft
baronfel wants to merge 14 commits intodotnet:mainfrom
baronfel:factor-out-processframeworkreferences-into-separate-msbuild-steps
Draft

[draft] Implement ProcessFrameworkReferences in pure MSBuild#52396
baronfel wants to merge 14 commits intodotnet:mainfrom
baronfel:factor-out-processframeworkreferences-into-separate-msbuild-steps

Conversation

@baronfel
Copy link
Copy Markdown
Member

@baronfel baronfel commented Jan 11, 2026

This is an experiment to reimplement PFR in more MSBuild logic to help the debuggability of the Target. At this point I believe I have parity, so I kicked this off to get CI feedback. Both mechanisms are implemented, so a simple boolean property swaps between them for comparison.

This does all of the things that the current PFR does, and it fixes a bug where targeting packs and RID-specific runtime packs were downloaded for every KnownFrameworkReference that matched the current TFM, not just the FrameworkReference items that the project actually has.

This can also be faster than the current PFR - in my binlogs comparing the new version to the old, it's common to have the old PFR be ~50ms and the new ~5ms.

@baronfel baronfel force-pushed the factor-out-processframeworkreferences-into-separate-msbuild-steps branch from f517c00 to 3392139 Compare April 2, 2026 01:24
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.

1 participant