* Removing transitive dependencies from

Microsoft.AspNet.StaticFiles/project.json
* Replacing Contract.Assert with Debug.Assert and removing
  System.Diagnostics.Contracts dependency
* Fixing casing for Microsoft.AspNet.StaticFiles.Tests/project.json file
  name
This commit is contained in:
Pranav K 2014-12-20 07:17:14 -08:00
parent dc74729b6c
commit cce76cffd4
3 changed files with 7 additions and 27 deletions

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Diagnostics.Contracts; using System.Diagnostics;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -19,10 +19,10 @@ namespace Microsoft.AspNet.StaticFiles
long? bytesRemaining = length; long? bytesRemaining = length;
byte[] buffer = new byte[DefaultBufferSize]; byte[] buffer = new byte[DefaultBufferSize];
Contract.Assert(source != null); Debug.Assert(source != null);
Contract.Assert(destination != null); Debug.Assert(destination != null);
Contract.Assert(!bytesRemaining.HasValue || bytesRemaining.Value >= 0); Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.Value >= 0);
Contract.Assert(buffer != null); Debug.Assert(buffer != null);
while (true) while (true)
{ {

View File

@ -2,32 +2,12 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"description": "ASP.NET 5 static files middleware.", "description": "ASP.NET 5 static files middleware.",
"dependencies": { "dependencies": {
"Microsoft.AspNet.FileSystems.Interfaces": { "version": "1.0.0-*", "type": "build" },
"Microsoft.AspNet.Hosting": { "version": "1.0.0-*", "type": "build" }, "Microsoft.AspNet.Hosting": { "version": "1.0.0-*", "type": "build" },
"Microsoft.AspNet.Http": "1.0.0-*",
"Microsoft.AspNet.Http.Extensions": "1.0.0-*", "Microsoft.AspNet.Http.Extensions": "1.0.0-*",
"Microsoft.AspNet.HttpFeature": { "version": "1.0.0-*", "type": "build" }, "Microsoft.AspNet.HttpFeature": { "version": "1.0.0-*", "type": "build" }
"Microsoft.Framework.Logging": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"aspnet50": { }, "aspnet50": { },
"aspnetcore50": { "aspnetcore50": { }
"dependencies": {
"System.Collections": "4.0.10-beta-*",
"System.Diagnostics.Contracts": "4.0.0-beta-*",
"System.Diagnostics.Debug": "4.0.10-beta-*",
"System.Diagnostics.Tools": "4.0.0-beta-*",
"System.Globalization": "4.0.10-beta-*",
"System.IO": "4.0.10-beta-*",
"System.Linq": "4.0.0-beta-*",
"System.Reflection": "4.0.10-beta-*",
"System.Resources.ResourceManager": "4.0.0-beta-*",
"System.Runtime": "4.0.20-beta-*",
"System.Runtime.Extensions": "4.0.10-beta-*",
"System.Runtime.InteropServices": "4.0.20-beta-*",
"System.Text.Encoding": "4.0.10-beta-*",
"System.Threading.Tasks": "4.0.10-beta-*"
}
}
} }
} }