Skip to content

Defer loading ISettings until required - #7588

Merged
zivkan merged 2 commits into
devfrom
dev-erarndt-configAssemblyLoad
Jul 27, 2026
Merged

zivkan merged 2 commits into
devfrom
dev-erarndt-configAssemblyLoad

Conversation

@Erarndt

@Erarndt Erarndt commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: assembly load perf regression

Description

VS's internal perf monitoring found that in some scenarios where NuGet is otherwise not used, NuGet.Configuration.dll is being loaded, whereas prior to #7454 it was not.

This change should avoid loading NuGet.Configuration.dll unless the build delay callback is made, and the settings is actually used, as it was before.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests Will get tested once inserted into VS
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@Erarndt
Erarndt marked this pull request as ready for review July 23, 2026 15:21
@Erarndt
Erarndt requested a review from a team as a code owner July 23, 2026 15:21
@Erarndt
Erarndt requested review from Nigusu-Allehu and zivkan July 23, 2026 15:21
zivkan
zivkan previously approved these changes Jul 24, 2026
@zivkan
zivkan merged commit 3bda3ba into dev Jul 27, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-erarndt-configAssemblyLoad branch July 27, 2026 21:51
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.

4 participants