{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/2614","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/2614/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/2614/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/2614/events","html_url":"https://github.com/NuGet/Home/issues/2614","id":149561031,"number":2614,"title":"install fails when a nuget Source is unavailable even when this is not the selected Source ","user":{"login":"FilipDeVos","id":22344,"avatar_url":"https://avatars.githubusercontent.com/u/22344?v=3","gravatar_id":"","url":"https://api.github.com/users/FilipDeVos","html_url":"https://github.com/FilipDeVos","followers_url":"https://api.github.com/users/FilipDeVos/followers","following_url":"https://api.github.com/users/FilipDeVos/following{/other_user}","gists_url":"https://api.github.com/users/FilipDeVos/gists{/gist_id}","starred_url":"https://api.github.com/users/FilipDeVos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FilipDeVos/subscriptions","organizations_url":"https://api.github.com/users/FilipDeVos/orgs","repos_url":"https://api.github.com/users/FilipDeVos/repos","events_url":"https://api.github.com/users/FilipDeVos/events{/privacy}","received_events_url":"https://api.github.com/users/FilipDeVos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T19:39:41Z","updated_at":"2016-04-19T19:39:41Z","closed_at":null,"body":"Since one of my nuget feeds sits behind a VPN connection it is often not available. Every time I want to install a package the install fails unless I activate the VPN. \r\n\r\n```\r\nInstall-Package Newtonsoft.Json -Source \"Microsoft and .NET\"\r\n```\r\n\r\n```\r\nInstall-Package : Exception 'System.AggregateException' thrown when trying to add source 'https://privatefeed/api/v2/'. Please verify all your online package sources are available.\r\nAt line:1 char:1\r\n+ Install-Package Newtonsoft.Json\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception\r\n    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand\r\n```\r\n\r\nThis is triggered by the iteration of all sources which are added here [ResolverGather.cs](https://github.com/NuGet/NuGet.Client/blob/d74b04c1bdd3a6bb14b0ba6edd319e9c839c6eae/src/NuGet.Core/NuGet.PackageManagement/Resolution/ResolverGather.cs#L546)\r\n\r\nIdeally the list should only validate the source I selected. As a workaround raising the exception as a warning would work. \r\n\r\n"}}