Skip to content

Conversation

@jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Mar 16, 2022

Bug

Fixes: NuGet/Home#11676

Regression? Last working version:

Description

The SettingsLoadingContext is a file cache for NuGet.Config but it was never included in the NuGet-based MSBuild project SDK resolver. This results in NuGet.Config being loaded once for every project in Visual Studio design-time builds which is completely unnecessary. This change includes the SettingsLoadingContext when reading the settings to avoid extra reads of the file.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception - Existing tests cover this code path
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@jeffkl jeffkl merged commit 1c20dbb into dev Mar 17, 2022
@jeffkl jeffkl deleted the dev-jeffkl-nugetsdkresolver-load-nuget-config-once branch March 17, 2022 13:41
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.

[DCR]: NuGet-based MSBuild project SDK resolver should only load NuGet.Config once

4 participants