Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SettingsLoadingContext in NuGetSdkResolver #4506

Merged
merged 1 commit into from
Mar 17, 2022

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
3 participants