var packageRepository = PackageRepositoryFactory.Default.CreateRepository(NuGetConstants.DefaultFeedUrl);
foreach (var package in packageRepository.Search("mvc", false)) {
//Console.WriteLine(package.Id);
}
When I search for "Shouldly", the code works perfect, finding a single entry. When I search for "mvc", it goes into an endless loop. The loop happens in DataServiceQueryWrapper.GetAll method -- because the results variable, when calling GetContinuation(), returns the same continiation object over and over again. For some reason not clear to me, it all depends on the NextPageLink property set somewhere deep down the stack (I can provide it if needed). When I search for "Shouldly", this property is null, and thus the GetContinuation method returns null, and the loop never happens.