Skip to content

Commit

Permalink
Merge pull request #1870 from NuGet/anurse/1867-stopvalidatingschema
Browse files Browse the repository at this point in the history
Fix #1867 to enable <developmentDependency> works
  • Loading branch information
analogrelay committed Feb 4, 2014
2 parents 0ed1eb0 + 0926f47 commit f61b64e
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 33 deletions.
4 changes: 2 additions & 2 deletions src/NuGetGallery.Core/NuGetGallery.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\packages\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down
4 changes: 2 additions & 2 deletions src/NuGetGallery.Core/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<package id="Microsoft.Data.OData" version="5.5.0" targetFramework="net45" />
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.1.0" targetFramework="net45" />
<package id="System.Spatial" version="5.6.0" targetFramework="net45" />
<package id="Newtonsoft.Json" version="5.0.8" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
<package id="System.Spatial" version="5.6.0" targetFramework="net45" />
<package id="WindowsAzure.Storage" version="2.1.0.3" targetFramework="net45" />
</packages>
4 changes: 2 additions & 2 deletions src/NuGetGallery.Operations/NuGetGallery.Operations.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NLog.2.0.0.2000\lib\net40\NLog.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery.Operations/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<package id="Microsoft.WindowsAzure.Management.Scheduler" version="0.9.2-preview" targetFramework="net45" />
<package id="Newtonsoft.Json" version="5.0.8" targetFramework="net45" />
<package id="NLog" version="2.0.0.2000" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
<package id="System.Net.Http" version="2.0.20126.16343" targetFramework="net45" />
<package id="System.Spatial" version="5.5.0" targetFramework="net45" />
<package id="WindowsAzure.Storage" version="2.1.0.3" targetFramework="net45" />
Expand Down
6 changes: 3 additions & 3 deletions src/NuGetGallery/Controllers/ApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ public virtual async Task<ActionResult> GetPackage(string id, string version)
// The allow prerelease flag is ignored if both partialId and version are specified.
// In general we want to try to add download statistics for any package regardless of whether a version was specified.

// Only allow database requests to take up to 5 seconds. Any longer and we just lose the data; oh well.
EntitiesContext.SetCommandTimeout(5);

Package package = null;
try
{
Expand All @@ -118,9 +121,6 @@ public virtual async Task<ActionResult> GetPackage(string id, string version)
ProjectGuids = Request.Headers["NuGet-ProjectGuids"],
};

// Only allow this to take up to 5 seconds. Any longer and we just lose the data; oh well.
EntitiesContext.SetCommandTimeout(5);

PackageService.AddDownloadStatistics(stats);
}
catch (ReadOnlyModeException)
Expand Down
3 changes: 2 additions & 1 deletion src/NuGetGallery/Controllers/PackagesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ public virtual async Task<ActionResult> UploadPackage(HttpPostedFileBase uploadF
{
nuGetPackage = CreatePackage(uploadStream);
}
catch
catch (Exception ex)
{
QuietLog.LogHandledException(ex);
ModelState.AddModelError(String.Empty, Strings.FailedToReadUploadFile);
return View();
}
Expand Down
4 changes: 2 additions & 2 deletions src/NuGetGallery/NuGetGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Ninject.MVC3.3.0.0.6\lib\net45-full\Ninject.Web.Mvc.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="ODataNullPropagationVisitor">
<HintPath>..\..\packages\ODataNullPropagationVisitor.0.5.4237.2641\lib\net40\ODataNullPropagationVisitor.dll</HintPath>
Expand Down
1 change: 0 additions & 1 deletion src/NuGetGallery/ViewModels/PackageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public PackageViewModel(Package package)
LicenseNames = licenseNames.Split(',').Select(l => l.Trim());
}
}

public string Description { get; set; }
public string ReleaseNotes { get; set; }
public string IconUrl { get; set; }
Expand Down
1 change: 0 additions & 1 deletion src/NuGetGallery/Views/Packages/VerifyPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
<li>@ReadOnlyField("Package ID", "Id", Model.Id)</li>
<li>@ReadOnlyField("Version", "Version", Model.Version)</li>
<li>@ReadOnlyField("License URL", "LicenseUrl", Model.LicenseUrl, link: true)</li>

<li>@EditableField("Title", m => m.Edit.VersionTitle)</li>
<li>@EditableField("Description", m => m.Edit.Description)</li>
<li>@EditableField("Summary", m => m.Edit.Summary)</li>
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<package id="Ninject.MVC3" version="3.0.0.6" targetFramework="net45" />
<package id="Ninject.Web.Common" version="3.0.0.7" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.0.1" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
<package id="ODataNullPropagationVisitor" version="0.5.4237.2641" />
<package id="Owin" version="1.0" targetFramework="net45" />
<package id="PoliteCaptcha" version="0.4.0.0" targetFramework="net45" />
Expand Down
6 changes: 3 additions & 3 deletions tests/NuGetGallery.Core.Facts/NuGetGallery.Core.Facts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down Expand Up @@ -121,4 +121,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
2 changes: 1 addition & 1 deletion tests/NuGetGallery.Core.Facts/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net45" />
<package id="Moq" version="4.0.10827" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
<package id="xunit" version="1.9.2" targetFramework="net45" />
<package id="xunit.extensions" version="1.9.2" targetFramework="net45" />
</packages>
6 changes: 2 additions & 4 deletions tests/NuGetGallery.Facts/Controllers/ApiControllerFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,7 @@ public async Task GetPackageReturnsPackageIfItExists()
var actionResult = new EmptyResult();
var controller = new TestableApiController(MockBehavior.Strict);
controller.MockPackageService.Setup(x => x.FindPackageByIdAndVersion(PackageId, "1.0.1", false)).Returns(package);
//Disable it temporarily as AddDownloadStats is not being invoked currently
// controller.MockPackageService.Setup(x => x.AddDownloadStatistics(It.IsAny<PackageStatistics>())).Verifiable();
controller.MockPackageService.Setup(x => x.AddDownloadStatistics(It.IsAny<PackageStatistics>())).Verifiable();
controller.MockPackageFileService.Setup(s => s.CreateDownloadPackageActionResultAsync(HttpRequestUrl, PackageId, package.NormalizedVersion))
.Returns(Task.FromResult<ActionResult>(actionResult))
.Verifiable();
Expand Down Expand Up @@ -411,8 +410,7 @@ public async Task GetPackageReturnsLatestPackageIfNoVersionIsProvided()
var actionResult = new EmptyResult();
var controller = new TestableApiController(MockBehavior.Strict);
controller.MockPackageService.Setup(x => x.FindPackageByIdAndVersion(PackageId, "", false)).Returns(package);
//Disable it temporarily as AddDownloadStats is not being invoked currently
// controller.MockPackageService.Setup(x => x.AddDownloadStatistics(It.IsAny<PackageStatistics>())).Verifiable();
controller.MockPackageService.Setup(x => x.AddDownloadStatistics(It.IsAny<PackageStatistics>())).Verifiable();

controller.MockPackageFileService.Setup(s => s.CreateDownloadPackageActionResultAsync(HttpRequestUrl, PackageId, package.NormalizedVersion))
.Returns(Task.FromResult<ActionResult>(actionResult))
Expand Down
4 changes: 2 additions & 2 deletions tests/NuGetGallery.Facts/NuGetGallery.Facts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Ninject.Web.Common.3.0.0.7\lib\net45-full\Ninject.Web.Common.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
2 changes: 1 addition & 1 deletion tests/NuGetGallery.Facts/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<package id="Ninject.MockingKernel.Moq" version="3.0.0.5" targetFramework="net45" />
<package id="Ninject.MVC3" version="3.0.0.6" targetFramework="net45" />
<package id="Ninject.Web.Common" version="3.0.0.7" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
<package id="Owin" version="1.0" targetFramework="net45" />
<package id="PoliteCaptcha" version="0.4.0.0" targetFramework="net45" />
<package id="recaptcha" version="1.0.5.0" targetFramework="net45" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Microsoft.Web.Xdt.1.0.0\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
2 changes: 1 addition & 1 deletion tests/NuGetGallery.FunctionalTests.Helpers/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<packages>
<package id="AE.Net.Mail" version="1.7.1.0" targetFramework="net45" />
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Microsoft.Web.Xdt.1.0.0\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath>
</Reference>
<Reference Include="NuGet.Core, Version=2.7.41101.299, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="NuGet.Core, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\NuGet.Core.2.7.2\lib\net40-Client\NuGet.Core.dll</HintPath>
<HintPath>..\..\packages\NuGet.Core.2.8.0\lib\net40-Client\NuGet.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
2 changes: 1 addition & 1 deletion tests/NuGetGallery.FunctionalTests/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net45" />
<package id="NuGet.Core" version="2.7.2" targetFramework="net45" />
<package id="NuGet.Core" version="2.8.0" targetFramework="net45" />
</packages>

0 comments on commit f61b64e

Please sign in to comment.