badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.66k stars 5.49k forks source link

How do I get the NuGet pre-release badge to show latest pre-release version? #485

Closed anders9ustafsson closed 9 years ago

anders9ustafsson commented 9 years ago

I want to use the NuGet pre-release badge to display the latest pre-release version of my NuGet package, but I have not been able to figure out how to do it.

I have tried with the following markdown:

NuGet Pre Release

but it only displays a generic (stable release) version number: NuGet Pre Release

Do I need to change the URL to the NuGet package, and in that case to what? Or is there something wrong with the NuGet pre-release badge itself?

Many thanks in advance! Anders @ Cureos

espadrine commented 9 years ago
curl 'https://www.nuget.org/api/v2/Packages%28%29?$filter=Id%20eq%20%27Nuget.Core%27%20and%20IsAbsoluteLatestVersion%20eq%20true' -H 'Accept: application/atom+json,application/json'

only shows v2.8.5. Are you sure you have registered a prerelease version?

Or perhaps your intention is not to show the version of Nuget.Core, but that of fo-dicom? ![](https://img.shields.io/nuget/vpre/fo-dicom.svg)

anders9ustafsson commented 9 years ago

How stupid of me! I got a little confused and used the default Nuget.Core instead of fo-dicom. Many many thanks for leading me in the right direction, @espadrine !