* 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:
parent
dc74729b6c
commit
cce76cffd4
|
|
@ -2,7 +2,7 @@
|
|||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -19,10 +19,10 @@ namespace Microsoft.AspNet.StaticFiles
|
|||
long? bytesRemaining = length;
|
||||
byte[] buffer = new byte[DefaultBufferSize];
|
||||
|
||||
Contract.Assert(source != null);
|
||||
Contract.Assert(destination != null);
|
||||
Contract.Assert(!bytesRemaining.HasValue || bytesRemaining.Value >= 0);
|
||||
Contract.Assert(buffer != null);
|
||||
Debug.Assert(source != null);
|
||||
Debug.Assert(destination != null);
|
||||
Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.Value >= 0);
|
||||
Debug.Assert(buffer != null);
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,32 +2,12 @@
|
|||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 static files middleware.",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.FileSystems.Interfaces": { "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.HttpFeature": { "version": "1.0.0-*", "type": "build" },
|
||||
"Microsoft.Framework.Logging": "1.0.0-*"
|
||||
"Microsoft.AspNet.HttpFeature": { "version": "1.0.0-*", "type": "build" }
|
||||
},
|
||||
"frameworks": {
|
||||
"aspnet50": { },
|
||||
"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-*"
|
||||
}
|
||||
}
|
||||
"aspnetcore50": { }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue