we are using nuget inside our firewall and are finding that our distributed offices have a less then optimal network connection. As a result of network issues, we commonly see the following errors when trying to install packages.
Attempting to resolve dependency 'AppFabric'.
Install-Package : Failed to download package correctly. The contents of the package could not be verified.
At line:1 char:16
+ Install-Package <<<< dell-appframework-configuration
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidDataException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
We usually find that retrying a couple of times and sometimes waiting till the network is not saturated seems to solve the problem of working with these bad connections.
I was wondering if there has been any thought around adding some retry logic to downloading packages to be more tolerant of slow network connections?