-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
NuGet badges for multiple packages #204
Comments
It seems hard to integrate well with the rest of the REST design, but I'll think about it. |
I've had several uses for this. |
Hi, could you provide links? |
Things that would be good to group, especially for packages whose name has changed: https://www.nuget.org/packages/NUnit.Runners/ https://www.nuget.org/packages/NUnitLite/ Potentially all NUnit.* downloads for a total count. https://www.nuget.org/packages/AsyncBridge/ |
Can we have an option to show the nuget package in the badge ? This way we could at least add different badges and it would be easy to identify which one is which |
Yup, you can do that with the query string! e.g. https://img.shields.io/nuget/dt/Microsoft.AspNet.Mvc.svg?label=aspnet.mvc%20downloads |
I think we are not going to provide this because it requires too much bandwidth and time for a single badge render. However we're working on an endpoint badge #2473 which will make it easy to write your own Runkit endpoint to perform the logic, and then the badge can point to that. |
Shields is now offing a workaround: the Endpoint badge. You can use it with tools like RunKit and Jupyter Kernel Gateway to implement the exact badge content and logic you want, while letting Shields take care of formatting, rendering, and caching. If you decide to use the new feature, your feedback is much appreciated! Please feel free to comment on the Endpoint beta issue if you have feedback or questions about how to use it. |
Some projects/repos, e.g. https://github.com/scriptcs/scriptcs, produce a number of NuGet packages, e.g. https://www.nuget.org/profiles/scriptcs/.
It would be nice to be have NuGet badges which took all packages into account, certainly for download count.
Version would also work if the versions of all the packages are the same. If they differ, perhaps the badge could display the latest version, a version range, or just '4 packages'.
I think the name of each package would have to be specified in the URL, e.g.
http://img.shields.io/nuget/multi/dt/shields.svg?ScriptCs.Contracts&ScriptCs.Core&ScriptCs.Engine.Roslyn&ScriptCs.Hosting
Specifying the packages using a filter is difficult since the only options are search, author and tags. The only one under definitive control of the publisher is author, but even that will only be narrowly useful since most projects don't create an author specifically for their package publishing. Even if they did, it would be fairly common that they would publish packages from many repos which means the badge wouldn't be useful for puttting on a repo specific readme. Still, that could also provided as an option, e.g.
http://img.shields.io/nuget/profile/dt/scriptcs.svg
.I guess another badge could give package count, e.g.
http://img.shields.io/nuget/multi/pc/shields.svg?ScriptCs.Contracts&ScriptCs.Core&ScriptCs.Engine.Roslyn&ScriptCs.Hosting
andhttp://img.shields.io/nuget/profile/pc/scriptcs.svg
.The text was updated successfully, but these errors were encountered: