Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing a package from PackageManager console with setting "All" tries only first source #2557

Closed
skofman1 opened this issue Apr 15, 2016 · 2 comments

Comments

@skofman1
Copy link
Contributor

Repro steps:

  1. Set myget as top source (for example), and Nuget as second source
  2. Open Package MAnager Console
  3. Try to install package: Install-Package Microsoft.ApplicationInsights.Web -Pre
Install will fail since only download from myget is attempted:
GET https://myget-2e16.kxcdn.com/artifacts/nugetbuild/nuget/v3/flatcontainer/microsoft.diagnostics.tracing.eventsource.redist/1.1.28/microsoft.diagnostics.tracing.eventsource.redist.1.1.28.nupkg
  NotFound https://myget-2e16.kxcdn.com/artifacts/nugetbuild/nuget/v3/flatcontainer/microsoft.diagnostics.tracing.eventsource.redist/1.1.28/microsoft.diagnostics.tracing.eventsource.redist.1.1.28.nupkg 605ms
Install failed. Rolling back...
Uninstalling NuGet package Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.28.
Install-Package : Package 'Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.28' is not found on source 'https://www.myget.org/F/nugetbuild/api/v3/index.json'.
At line:1 char:1
+ Install-Package Microsoft.Diagnostics.Tracing.EventSource.Redist
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
@alpaix
Copy link

alpaix commented Apr 18, 2016

The behavior is similar to #2322. But this time it manifests itself in Powershell cmdlet.

@joelverhagen
Copy link
Member

Fixed with NuGet/NuGet.Client#549

@zhili1208 zhili1208 modified the milestones: 3.5 Beta2, 3.6 Beta Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants