NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.54k stars 644 forks source link

[Search-by-TFM] Allow users to filter packages by supported platforms #9628

Open advay26 opened 1 year ago

advay26 commented 1 year ago

Problem description

Users can currently filter their package search results on nuget.org by a package's supported frameworks.

Users also want to be able to filter packages by their supported platforms (Windows, MacOS, Android, iOS, etc.). This will be a big help to client-heavy developers, allowing them to find packages to build out their desktop/mobile/web apps.

This is one of the top asks for new search filters based on our HaTS survey results.

Solution

Add support for filtering by a package's supported platforms to nuget.org search.

Consider also showing supported platforms on the package details page.

NOTE (Blocker?): We should be able to derive this information from the package's supported frameworks, but there are questions over platform compatibility for packages that target multiple frameworks (Is the set of supported platforms for a package the union of all platforms supported by its target frameworks, the intersection of these platforms, or something in between?)

advay26 commented 1 week ago

Related to https://github.com/NuGet/NuGetGallery/issues/2787