nugetnuget-server

nuger.server's FindPackagesById() is not returning pre-release packages


I am trying to query the nuget server using the FindPackagesById() web method. But it is not returning the pre-release versions of the package. I am sure that there's a way to do it. Any help would be appreciated. ;0)

The example below is how I am running the search

http://localhost/nuget/FindPackagesById()?id='NugetTestApp1'

Solution

  • The problem was that in order for the FindPackagesById() to return pre-release packages we must set the semVerLevel to 2.0.0.

    http://localhost/nuget/FindPackagesById()?id='NugetTestApp1'&semVerLevel=2.0.0