Skip to content

Commit

Permalink
Merge pull request #2569 from NuGet/update3.0
Browse files Browse the repository at this point in the history
Allow client version up to 3.0
  • Loading branch information
bhuvak committed Jun 29, 2015
2 parents b456de3 + 55560dd commit 6b2f1d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NuGetGallery/Controllers/ApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private async Task<ActionResult> CreatePackageInternal()

using (var packageToPush = ReadPackageFromRequest())
{
if (packageToPush.Metadata.MinClientVersion > typeof(Manifest).Assembly.GetName().Version)
if (packageToPush.Metadata.MinClientVersion > new Version("3.0.0.0"))
{
return new HttpStatusCodeWithBodyResult(HttpStatusCode.BadRequest, String.Format(
CultureInfo.CurrentCulture,
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/Controllers/PackagesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public virtual async Task<ActionResult> UploadPackage(HttpPostedFileBase uploadF
}

// Check min client version
if (nuGetPackage.Metadata.MinClientVersion > typeof(Manifest).Assembly.GetName().Version)
if (nuGetPackage.Metadata.MinClientVersion > new Version("3.0.0.0"))
{
ModelState.AddModelError(
String.Empty,
Expand Down

0 comments on commit 6b2f1d3

Please sign in to comment.