Cannot install NuGet package if at least one source is unavailable

The following problem does not exist in VS2013 (Premium), I can only reproduce it in VS2015 (Enterprise)

I have added my own source code for the NuGet package. If this source is not available, I cannot install any package (e.g. EntityFramework)

I get a message

Attempt to collect dependency information for the package 'EntityFramework.6.1.3' regarding the project 'ConsoleApplication9', targeting .NETFramework, version = v4.5.2 '

The "System.AggregateException" exception is thrown when trying to add the source ' http: //XXX/FeedService.svc/ .

Make sure all of your online package sources are available.

From the last line of the message, I assume that this is not an error, but, as I said, it works on VS2013

Any idea why this has changed?
Can I do something about this?

+6
source share
2 answers

This is by design. Since we support multi-source searches for required packages, we need to have access to all sources and get package results before restoring these packages in order to be deterministic and consistent in the recovery method.

, /-, , . nuget.config, , .

+3

, , . , :

  1. Visual Studio → → NuGet. →
  2. , NuGet. NuGetExample

, 1 2, , .

0

All Articles