Repository navigation
Stop NGen for SAC assemblies - #14882
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 0b87e8f4-e62c-4e4d-8b59-37f031ca7565
pieandcakes
temporarily deployed
to
copilot-pat-pool
August 28, 2026 22:42 — with
GitHub Actions
Inactive
pieandcakes
temporarily deployed
to
copilot-pat-pool
August 28, 2026 22:42 — with
GitHub Actions
Inactive
Contributor
|
Hello @pieandcakes, I noticed that you’re changing an .swr file or any file under src/Package/MSBuild.VSSetup.. Please make sure to validate this change by an experimental VS insertion. This is accomplished by pushing to an exp/* branch, which requires write permissions to this repo. |
Contributor
There was a problem hiding this comment.
Pull request overview
Removes Visual Studio NGen registration metadata for assemblies that are now expected to be provided via devenv’s shared assembly cache (SAC), reducing installer-time NGen work for MSBuild’s VS setup payload.
Changes:
- Drops
vs.file.ngenApplications/vs.file.ngenArchitecture/vs.file.ngenPrioritymetadata for a set of dependencies (x86 + amd64 sections). - Adds inline comments explaining why those assemblies are no longer NGen-marked (because VS/MSBuild will use the SAC copy).
Suppressed comments (1)
src/Package/MSBuild.VSSetup/files.swr:49
- This same long comment is repeated before many consecutive file entries (x86 and amd64 sections). That repetition makes future edits noisy and increases merge-conflict risk; consider replacing the per-file comments with a single block comment before the group of SAC-sourced assemblies (or a shorter, standardized marker) rather than duplicating the full sentence each time.
# This assembly is in the devenv SAC. MSBuild in Visual Studio uses that copy; remove this packaged copy in a future version after compatibility is confirmed.
file source=$(X86BinPath)System.Buffers.dll
file source=$(X86BinPath)System.Formats.Nrbf.dll vs.file.ngenApplications="[installDir]\MSBuild\Current\Bin\MSBuild.exe" vs.file.ngenArchitecture=all vs.file.ngenPriority=2
# This assembly is in the devenv SAC. MSBuild in Visual Studio uses that copy; remove this packaged copy in a future version after compatibility is confirmed.
file source=$(X86BinPath)System.IO.Pipelines.dll
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
rainersigwald
approved these changes
Aug 31, 2026
We're avoiding ngen of our local copies of SAC assemblies, but since the Coordinator exe wasn't pointed to the SAC copy that might have regressed it.
AR-May
approved these changes
Sep 10, 2026
Member
|
We should wait for the new exp/ insertion to pass before merging. |
rainersigwald
approved these changes
Sep 17, 2026
This was referenced Sep 17, 2026
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.
Since adding the support to use assemblies to the SAC, no longer need to mark them for ngen for VS