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

Package Search should limit results to compatible packages for target project(s) #4071

Closed
rrelyea opened this issue Dec 8, 2016 · 10 comments
Labels
Functionality:VisualStudioUI Priority:2 Issues for the current backlog. Product:VS.Client Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature

Comments

@rrelyea
Copy link
Contributor

rrelyea commented Dec 8, 2016

Usability of NuGet inside of VS would be much improved if we could filter search results based on compatibility for the target project(s).

[Searched for an existing issue, but couldn't find. Will dupe others to this.]

@emgarten
Copy link
Member

emgarten commented Dec 8, 2016

The reason why this isn't done today is that a large percent of packages on nuget.org contain assets compatible with everything.

Examples:

  • tools/install.ps1
  • build/a.targets
  • lib/a.dll
  • content/readme.txt

This could be solved by adding options to the UI to optionally filter to these states:

  • All packages
  • packages that have any compatible assets
  • packages which contain compatible assets that are TFM specific
  • packages that contain assets specifically for the TFM (ex: netcoreapp1.1 and not netcoreapp1.0)

This would help improve discoverability of certain packages, which is often the reason why this search filtering is requested.

@nkolev92
Copy link
Member

This is an old duplicate issue.
#318

I will close out the other one in favor of this.

@sanny-io
Copy link

This is pretty important. It's expected that the selection of usable packages goes down when using something like .NET Core, but the fact that the small pile of things that work is lumped together with the massive pile of things that don't work is ridiculous.

@nkolev92
Copy link
Member

We should consider PackageType as a filter too.

@frankhaugen
Copy link

This should be more of a priority, as it's getting ridiculous in the Packadge Manager. When I use Xamarin.forms, why shouldn't I have the option to hide jQuery, or other non-Xamarin/.net nugets?

It's already visible metadata, so a simple "checkbox" next to the pre-release checkbox, called "hide incompatible" would be awesome. Pre-release already do filtering so it's not that filtering don't exist.

please. I beg you, find a solution, because I like to "browse" and see what are available, (alternative Json-tools e.g.)

thank you for reading my ranting plea

@nguerrera
Copy link

Not just VS, but also dotnet add package and dotnet tool install.

@ssteiner
Copy link

This has gotten considerably worse with .NET Core 3.0. A lot of packages released with .NET core supports .NET standard 2.1. So you now get a a long list of available updates that are incompatible unless your projects already target .Net Standard 2.1 / .net core app 3.0.

@frankhaugen
Copy link

@ssteiner I've been following the Nuget development process, and it's almost abandonware. With few major changes to the clients. I concidered writing my own, but the data served up by the APIs don't have the information.

So someone in the community should take responsibility to make a custom nuget client extension and CLI so we could get this. because I can still add web nugets to my C# classlibs

@vbjay
Copy link

vbjay commented Dec 5, 2021

image
image

Yes this is pretty much a pain. I don't want net 6.0 nuget packages suggested for update when I am in a 5.0 project. It makes updating packages a chore.

@nkolev92
Copy link
Member

nkolev92 commented Jul 20, 2022

For some reason we had 2 different tracking issues for this feature: #5725 and this one.

This issue is older, but the other issue has more upvotes, so closing this in favor of #5725

VS PMUI Triage automation moved this from Ongoing to Closed Jul 20, 2022
@nkolev92 nkolev92 added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:VisualStudioUI Priority:2 Issues for the current backlog. Product:VS.Client Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature
Projects
No open projects
Development

No branches or pull requests