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

Inconsistency between Install Scenarios in package reference and packages.config cases clarifications #5848

Open
nkolev92 opened this issue Sep 5, 2017 · 0 comments
Labels
Functionality:Install The install command in VS/nuget.exe Functionality:Restore Functionality:VisualStudioUI Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:VS.Client Style:PackageReference Style:Packages.Config Type:Docs
Milestone

Comments

@nkolev92
Copy link
Member

nkolev92 commented Sep 5, 2017

We need to clarify the different behavior between install in package reference (both netcore and legacy) cases and packages.config.

In the packages.config case installing with a primary source selected means that the primary source has to contain the requested package and the dependencies can come from any other of the not-selected, but enabled sources.

In package reference case, all sources are used and the dropdown is just a view.
The concept of primary source is not relevant since the install is treated like a regular restore.
This is by design because different sources in the transitive cases can lead to different resolution graphs, thus leading to inconsistent restores.

We need to document both of these scenarios, as users have already reported with concern about the behavior.

Example this issue:
https://developercommunity.visualstudio.com/content/problem/69961/manage-nuget-packages-for-solution-is-not-paying-a.html

Related to #5763
Related to #5863 as well.
Maybe related to #5932 [closed]
Related to #5643
Related to https://github.com/NuGet/docs.microsoft.com-nuget/issues/407
//cc
@emgarten @anangaur @rrelyea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Install The install command in VS/nuget.exe Functionality:Restore Functionality:VisualStudioUI Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:VS.Client Style:PackageReference Style:Packages.Config Type:Docs
Projects
None yet
Development

No branches or pull requests

4 participants