@@ -103,10 +103,11 @@ public HashSet<AssemblyLookupLocation> Restore()
103
103
compilationInfoContainer . CompilationInfos . Add ( ( "NuGet feed responsiveness checked" , checkNugetFeedResponsiveness ? "1" : "0" ) ) ;
104
104
105
105
HashSet < string > ? explicitFeeds = null ;
106
+ HashSet < string > ? allFeeds = null ;
106
107
107
108
try
108
109
{
109
- if ( checkNugetFeedResponsiveness && ! CheckFeeds ( out explicitFeeds ) )
110
+ if ( checkNugetFeedResponsiveness && ! CheckFeeds ( out explicitFeeds , out allFeeds ) )
110
111
{
111
112
// todo: we could also check the reachability of the inherited nuget feeds, but to use those in the fallback we would need to handle authentication too.
112
113
var unresponsiveMissingPackageLocation = DownloadMissingPackagesFromSpecificFeeds ( explicitFeeds ) ;
@@ -156,7 +157,7 @@ public HashSet<AssemblyLookupLocation> Restore()
156
157
157
158
var restoredProjects = RestoreSolutions ( out var container ) ;
158
159
var projects = fileProvider . Projects . Except ( restoredProjects ) ;
159
- RestoreProjects ( projects , explicitFeeds , out var containers ) ;
160
+ RestoreProjects ( projects , allFeeds , out var containers ) ;
160
161
161
162
var dependencies = containers . Flatten ( container ) ;
162
163
@@ -704,10 +705,11 @@ private bool IsFeedReachable(string feed, int timeoutMilliSeconds, int tryCount,
704
705
/// as well as any private package registry feeds that are configured.
705
706
/// </summary>
706
707
/// <param name="explicitFeeds">Outputs the set of explicit feeds.</param>
708
+ /// <param name="allFeeds">Outputs the set of all feeds (explicit and inherited).</param>
707
709
/// <returns>True if all feeds are reachable or false otherwise.</returns>
708
- private bool CheckFeeds ( out HashSet < string > explicitFeeds )
710
+ private bool CheckFeeds ( out HashSet < string > explicitFeeds , out HashSet < string > allFeeds )
709
711
{
710
- ( explicitFeeds , var allFeeds ) = GetAllFeeds ( ) ;
712
+ ( explicitFeeds , allFeeds ) = GetAllFeeds ( ) ;
711
713
HashSet < string > feedsToCheck = explicitFeeds ;
712
714
713
715
// If private package registries are configured for C#, then check those
0 commit comments