Added required packages for K and fixed the build
This commit is contained in:
parent
ad3112917b
commit
55718fd931
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version" : "0.1-alpha-*",
|
"version": "0.1-alpha-*",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.FileSystems": "0.1-alpha-*",
|
"Microsoft.AspNet.FileSystems": "0.1-alpha-*",
|
||||||
"Microsoft.AspNet.StaticFiles": "",
|
"Microsoft.AspNet.StaticFiles": "",
|
||||||
|
|
@ -8,14 +8,33 @@
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"net45": {
|
"net45": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Owin": "1.0",
|
"Owin": "1.0",
|
||||||
"Microsoft.Owin": "2.1.0",
|
"Microsoft.Owin": "2.1.0",
|
||||||
"Microsoft.Owin.Diagnostics": "2.1.0",
|
"Microsoft.Owin.Diagnostics": "2.1.0",
|
||||||
"Microsoft.Owin.Hosting": "2.1.0",
|
"Microsoft.Owin.Hosting": "2.1.0",
|
||||||
"Microsoft.Owin.Host.HttpListener": "2.1.0",
|
"Microsoft.Owin.Host.HttpListener": "2.1.0",
|
||||||
"Microsoft.AspNet.AppBuilderSupport": "0.1-alpha-*"
|
"Microsoft.AspNet.AppBuilderSupport": "0.1-alpha-*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"k10" : { }
|
"k10": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Console": "4.0.0.0",
|
||||||
|
"System.Collections": "4.0.0.0",
|
||||||
|
"System.Diagnostics.Debug": "4.0.10.0",
|
||||||
|
"System.Diagnostics.Tools": "4.0.0.0",
|
||||||
|
"System.Globalization": "4.0.10.0",
|
||||||
|
"System.IO": "4.0.0.0",
|
||||||
|
"System.IO.FileSystem": "4.0.0.0",
|
||||||
|
"System.IO.FileSystem.Primitives": "4.0.0.0",
|
||||||
|
"System.Linq": "4.0.0.0",
|
||||||
|
"System.Reflection": "4.0.10.0",
|
||||||
|
"System.Resources.ResourceManager": "4.0.0.0",
|
||||||
|
"System.Runtime": "4.0.20.0",
|
||||||
|
"System.Runtime.Extensions": "4.0.10.0",
|
||||||
|
"System.Runtime.InteropServices": "4.0.10.0",
|
||||||
|
"System.Text.Encoding": "4.0.10.0",
|
||||||
|
"System.Threading.Tasks": "4.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -79,11 +79,12 @@ namespace Microsoft.AspNet.StaticFiles
|
||||||
throw new ArgumentOutOfRangeException("length", length, string.Empty);
|
throw new ArgumentOutOfRangeException("length", length, string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024 * 64,
|
|
||||||
#if NET45
|
#if NET45
|
||||||
|
Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024 * 64,
|
||||||
FileOptions.Asynchronous | FileOptions.SequentialScan);
|
FileOptions.Asynchronous | FileOptions.SequentialScan);
|
||||||
#else
|
#else
|
||||||
useAsync: true);
|
// TODO: Bring back async when the contract gets it
|
||||||
|
Stream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024 * 64);
|
||||||
#endif
|
#endif
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,31 @@
|
||||||
{
|
{
|
||||||
"version": "0.1-alpha-*",
|
"version": "0.1-alpha-*",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.Abstractions" : "0.1-alpha-*",
|
"Microsoft.AspNet.Abstractions": "0.1-alpha-*",
|
||||||
"Microsoft.AspNet.HttpFeature" : "0.1-alpha-*",
|
"Microsoft.AspNet.HttpFeature": "0.1-alpha-*",
|
||||||
"Microsoft.AspNet.FileSystems" : "0.1-alpha-*"
|
"Microsoft.AspNet.FileSystems": "0.1-alpha-*"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"net45": { },
|
"net45": {},
|
||||||
"k10" : { }
|
"k10": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Collections": "4.0.0.0",
|
||||||
|
"System.Diagnostics.Debug": "4.0.10.0",
|
||||||
|
"System.Diagnostics.Contracts": "4.0.0.0",
|
||||||
|
"System.Diagnostics.Tools": "4.0.0.0",
|
||||||
|
"System.Globalization": "4.0.10.0",
|
||||||
|
"System.IO": "4.0.0.0",
|
||||||
|
"System.IO.FileSystem": "4.0.0.0",
|
||||||
|
"System.IO.FileSystem.Primitives": "4.0.0.0",
|
||||||
|
"System.Linq": "4.0.0.0",
|
||||||
|
"System.Reflection": "4.0.10.0",
|
||||||
|
"System.Resources.ResourceManager": "4.0.0.0",
|
||||||
|
"System.Runtime": "4.0.20.0",
|
||||||
|
"System.Runtime.Extensions": "4.0.10.0",
|
||||||
|
"System.Runtime.InteropServices": "4.0.10.0",
|
||||||
|
"System.Text.Encoding": "4.0.10.0",
|
||||||
|
"System.Threading.Tasks": "4.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue