Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
This commit is contained in:
parent
e738bd467d
commit
63c033f736
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"commands": {
|
"commands": {
|
||||||
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.Urls http://localhost:12345/"
|
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.Urls http://localhost:12345/"
|
||||||
},
|
},
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
"Microsoft.Framework.Logging.Console": "1.0.0-*"
|
"Microsoft.Framework.Logging.Console": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"aspnet50": {},
|
"dnx451": {},
|
||||||
"aspnetcore50": {}
|
"dnxcore50": {}
|
||||||
},
|
},
|
||||||
"webroot": "wwwroot"
|
"webroot": "wwwroot"
|
||||||
}
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||||
// 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;
|
||||||
|
|
@ -81,7 +81,7 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
throw new ArgumentOutOfRangeException("length", length, string.Empty);
|
throw new ArgumentOutOfRangeException("length", length, string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ASPNET50
|
#if DNX451
|
||||||
Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024 * 64,
|
Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024 * 64,
|
||||||
FileOptions.Asynchronous | FileOptions.SequentialScan);
|
FileOptions.Asynchronous | FileOptions.SequentialScan);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"description": "ASP.NET 5 static files middleware.",
|
"description": "ASP.NET 5 static files middleware.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"Microsoft.Framework.WebEncoders": "1.0.0-*"
|
"Microsoft.Framework.WebEncoders": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"aspnet50": { },
|
"dnx451": { },
|
||||||
"aspnetcore50": { }
|
"dnxcore50": { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.Http.Core": "1.0.0-*",
|
"Microsoft.AspNet.Http.Core": "1.0.0-*",
|
||||||
"Microsoft.AspNet.RequestContainer": "1.0.0-*",
|
"Microsoft.AspNet.RequestContainer": "1.0.0-*",
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
"test": "xunit.runner.kre"
|
"test": "xunit.runner.kre"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"aspnet50": {
|
"dnx451": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Shouldly": "1.1.1.1"
|
"Shouldly": "1.1.1.1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue