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.55k stars 644 forks source link

[Search-by-TFM Bug] 'Template' package type filters combined with Frameworks filters should warn? #9390

Open advay26 opened 1 year ago

advay26 commented 1 year ago

Problem description

Templates do not have a Frameworks tab on the Package Details page. Should we also disallow/warn users when they try to combine the packageType = template filter with frameworks filters? The behaviors across the frameworks tab and frameworks filters should be consistent.

Q: Are target frameworks expected with template packages? Most template packages in our ecosystem do not have target frameworks, but a handful do.

A: Template packages aren't required to have any particular structure, as they're not recognized by the tooling at all. Some template packages have Target Frameworks because this is needed to build the package.

Target Frameworks have no relevance to the consumer of a template package, so combining the 'Template' package type filter with a Frameworks filter is not useful.

Solution

Should we disallow/warn users when they try to combine the packageType = template filter with frameworks filters?

joelverhagen commented 1 year ago

Goal for March: email Jon and .NET template owners to get clarity on the scenario