In our CI-system, we use the Proget native API to retrieve information about out NuGet packages, like the latest available version. This mostly works as expected, but we have trouble with NuGet packages whose ID contains underscores ( _ ).
Given the following query, a json structure containing information about the package is returned as expected:
But if the pacakge ID contains an underscore, like the following query, the returned json structure is just an empty list:
We get the same result also for
NuGetPackages_GetLatest, so it does not matter if the package exists only in prerelease versions. The result is also the same across different feeds.
Is this a bug in the native API? Are there any possible workarounds for fetching version information for packages whose ID contains an underscore?