Skip to content

Instantly share code, notes, and snippets.

@half-ogre
Created February 21, 2012 05:27
Show Gist options
  • Save half-ogre/1873956 to your computer and use it in GitHub Desktop.
Save half-ogre/1873956 to your computer and use it in GitHub Desktop.
Fix for NuGet Gallery #417
var allPackageVersions = packagesQuery.ToList();
var packageVersions = allPackageVersions; ;
if (String.IsNullOrEmpty(version) && !allowPrerelease)
{
// If there's a specific version given, don't bother filtering by prerelease. You could be asking for a prerelease package.
packageVersions = packageVersions.Where(p => !p.IsPrerelease).ToList();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment