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

Commit 63c033f

Browse files
author
N. Taylor Mullen
committed
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
1 parent e738bd4 commit 63c033f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

samples/StaticFileSample/project.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"commands": {
33
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.Urls http://localhost:12345/"
44
},
@@ -11,8 +11,8 @@
1111
"Microsoft.Framework.Logging.Console": "1.0.0-*"
1212
},
1313
"frameworks": {
14-
"aspnet50": {},
15-
"aspnetcore50": {}
14+
"dnx451": {},
15+
"dnxcore50": {}
1616
},
1717
"webroot": "wwwroot"
18-
}
18+
}

src/Microsoft.AspNet.StaticFiles/SendFileMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
1+
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
@@ -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 ASPNET50
84+
#if DNX451
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"version": "1.0.0-*",
33
"description": "ASP.NET 5 static files middleware.",
44
"dependencies": {
@@ -10,7 +10,7 @@
1010
"Microsoft.Framework.WebEncoders": "1.0.0-*"
1111
},
1212
"frameworks": {
13-
"aspnet50": { },
14-
"aspnetcore50": { }
13+
"dnx451": { },
14+
"dnxcore50": { }
1515
}
1616
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"dependencies": {
33
"Microsoft.AspNet.Http.Core": "1.0.0-*",
44
"Microsoft.AspNet.RequestContainer": "1.0.0-*",
@@ -11,10 +11,10 @@
1111
"test": "xunit.runner.kre"
1212
},
1313
"frameworks": {
14-
"aspnet50": {
14+
"dnx451": {
1515
"dependencies": {
1616
"Shouldly": "1.1.1.1"
1717
}
1818
}
1919
}
20-
}
20+
}

0 commit comments

Comments
 (0)