Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get prereleased packages list using Nuget.Core?

I'm trying to use Nuget.Core to find Microsoft.Bcl.Immutable package (it is currently in prerelease state). DataServicePackageRepository.SupportsPrereleasePackages always returns false and I can't find any way to change it.

Id there a way to work with prereleased packages, located at nuget.org using Nuget.Core APIs?

like image 244
controlflow Avatar asked Nov 12 '22 13:11

controlflow


1 Answers

The problem was using v1 nuget API, located at http://packages.nuget.org/v1/FeedService.svc/. Second version API http://packages.nuget.org/api/v2/ supports exposing prereleased packages in search results.

like image 160
controlflow Avatar answered Jan 04 '23 01:01

controlflow