Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How do you get the latest version number for a nuget package from the GitHub REST API?

$
0
0

How do you get the latest version number for a nuget package from the GitHub REST API?

I need this as part of my build script so I don't need to keep manually increment the version in my build file (PowerShell).

curl -H "Accept: application/vnd.github.v3+json" -u myusername:<mykey> https://api.github.com/orgs/<mycompany>/packages/nuget/<mypackagename>

I can't see the actual latest version number of the package in the response. I was expecting to see a JSON property with something like latest_version: 1.0.24

I can see that there is version_count: 24 but that doesn't help me build the full SEMVER version of 1.2.28 etc.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>