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

Commit 494900a

Browse files
committed
Updated to use the new target framework in project.json
1 parent 13a9613 commit 494900a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

samples/StaticFileSample/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Microsoft.AspNet.StaticFiles": ""
77
},
88
"frameworks": {
9-
"net45": {
9+
"aspnet50": {
1010
},
1111
"aspnetcore50": {
1212
"dependencies": {

src/Microsoft.AspNet.StaticFiles/SendFileMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public async Task SendFileAsync(string fileName, long offset, long? length, Canc
8181
throw new ArgumentOutOfRangeException("length", length, string.Empty);
8282
}
8383

84-
#if NET45
84+
#if ASPNET50
8585
Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024 * 64,
8686
FileOptions.Asynchronous | FileOptions.SequentialScan);
8787
#else

src/Microsoft.AspNet.StaticFiles/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Microsoft.AspNet.HttpFeature": "1.0.0-*"
77
},
88
"frameworks": {
9-
"net45": {},
9+
"aspnet50": {},
1010
"aspnetcore50": {
1111
"dependencies": {
1212
"System.Collections": "4.0.10.0",

test/Microsoft.AspNet.StaticFiles.Tests/Project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "Xunit.KRunner"
1212
},
1313
"frameworks": {
14-
"net45": {
14+
"aspnet50": {
1515
"dependencies": {
1616
"Shouldly": "1.1.1.1",
1717
"System.Runtime": ""

0 commit comments

Comments
 (0)