C#: Use feed management in the remaining restore flows.#22041
Draft
michaelnebel wants to merge 9 commits into
Draft
C#: Use feed management in the remaining restore flows.#22041michaelnebel wants to merge 9 commits into
michaelnebel wants to merge 9 commits into
Conversation
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
from
June 24, 2026 10:58
25ade27 to
afe8f07
Compare
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
5 times, most recently
from
June 24, 2026 13:47
29a859a to
036f75c
Compare
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
from
June 25, 2026 11:06
036f75c to
86fc08e
Compare
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
3 times, most recently
from
June 30, 2026 13:05
4690d92 to
6ee50ce
Compare
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
from
June 30, 2026 14:21
43aaec6 to
fde527a
Compare
…apsulate as immutable hash sets.
…mmutable hash sets).
…lays the calculation of the reachable feeds until it is needed/used.
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
from
July 17, 2026 09:33
fde527a to
bbc01c9
Compare
…mSpecificFeeds as it is always called with this argument.
…instead of a specific nuget.config file, and supply a list of nuget sources when using the TryRestore.
michaelnebel
force-pushed
the
csharp/morefeedmanageruses
branch
from
July 17, 2026 13:19
bbc01c9 to
b0eaf49
Compare
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.
The primary purpose of this PR is to use the newly introduced feed manager in more of the package restore flows.
To achieve this we are
DowloadMissingPackages. This also somewhat simplifies the restore logic as we no longer create a dedicatednuget.configfile in fallback scenarios, but instead we supply feeds directly via the command line. Furthermore, if NuGet feed responsiveness checking is disabled we use all feeds when attempting to download missing packages (this will include private registries as well).TryRestoremethod, which can be used to restore individual packages. The logic has been changed slightly here compared to earlier as we will attempt to use the feeds detected in the source directory (instead of those in the temporary directory).With the changes in this PR, all
restorelike flows specify the feeds directly via the command line (unless NuGet feed checking is disabled and no private registries are configured). That is, as a follow up we can attempt the remove the timeout fallback and instead just always use reachable feeds.Review on a commit by commit basis is encouraged.
We should make a QA run before merging.