Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit cce76cf

Browse files
committed
* 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
1 parent dc74729 commit cce76cf

File tree

3 files changed

+7
-27
lines changed

3 files changed

+7
-27
lines changed

src/Microsoft.AspNet.StaticFiles/StreamCopyOperation.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using System.Diagnostics.Contracts;
5+
using System.Diagnostics;
66
using System.IO;
77
using System.Threading;
88
using System.Threading.Tasks;
@@ -19,10 +19,10 @@ internal static async Task CopyToAsync(Stream source, Stream destination, long?
1919
long? bytesRemaining = length;
2020
byte[] buffer = new byte[DefaultBufferSize];
2121

22-
Contract.Assert(source != null);
23-
Contract.Assert(destination != null);
24-
Contract.Assert(!bytesRemaining.HasValue || bytesRemaining.Value >= 0);
25-
Contract.Assert(buffer != null);
22+
Debug.Assert(source != null);
23+
Debug.Assert(destination != null);
24+
Debug.Assert(!bytesRemaining.HasValue || bytesRemaining.Value >= 0);
25+
Debug.Assert(buffer != null);
2626

2727
while (true)
2828
{

src/Microsoft.AspNet.StaticFiles/project.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,12 @@
22
"version": "1.0.0-*",
33
"description": "ASP.NET 5 static files middleware.",
44
"dependencies": {
5-
"Microsoft.AspNet.FileSystems.Interfaces": { "version": "1.0.0-*", "type": "build" },
65
"Microsoft.AspNet.Hosting": { "version": "1.0.0-*", "type": "build" },
7-
"Microsoft.AspNet.Http": "1.0.0-*",
86
"Microsoft.AspNet.Http.Extensions": "1.0.0-*",
9-
"Microsoft.AspNet.HttpFeature": { "version": "1.0.0-*", "type": "build" },
10-
"Microsoft.Framework.Logging": "1.0.0-*"
7+
"Microsoft.AspNet.HttpFeature": { "version": "1.0.0-*", "type": "build" }
118
},
129
"frameworks": {
1310
"aspnet50": { },
14-
"aspnetcore50": {
15-
"dependencies": {
16-
"System.Collections": "4.0.10-beta-*",
17-
"System.Diagnostics.Contracts": "4.0.0-beta-*",
18-
"System.Diagnostics.Debug": "4.0.10-beta-*",
19-
"System.Diagnostics.Tools": "4.0.0-beta-*",
20-
"System.Globalization": "4.0.10-beta-*",
21-
"System.IO": "4.0.10-beta-*",
22-
"System.Linq": "4.0.0-beta-*",
23-
"System.Reflection": "4.0.10-beta-*",
24-
"System.Resources.ResourceManager": "4.0.0-beta-*",
25-
"System.Runtime": "4.0.20-beta-*",
26-
"System.Runtime.Extensions": "4.0.10-beta-*",
27-
"System.Runtime.InteropServices": "4.0.20-beta-*",
28-
"System.Text.Encoding": "4.0.10-beta-*",
29-
"System.Threading.Tasks": "4.0.10-beta-*"
30-
}
31-
}
11+
"aspnetcore50": { }
3212
}
3313
}

0 commit comments

Comments
 (0)