Switching to using generations TFM
This commit is contained in:
parent
9d7300c52b
commit
0219aabc17
|
|
@ -12,9 +12,8 @@
|
|||
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net45" : { },
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Resources.ResourceManager": "4.0.1-beta-*"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,12 +10,15 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"Microsoft.AspNet.Http.Features": "1.0.0-*",
|
||||
"Microsoft.Extensions.ActivatorUtilities.Sources": { "type": "build", "version": "1.0.0-*" },
|
||||
"Microsoft.Extensions.ActivatorUtilities.Sources": {
|
||||
"type": "build",
|
||||
"version": "1.0.0-*"
|
||||
},
|
||||
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Collections": "4.0.11-beta-*",
|
||||
"System.Diagnostics.Tools": "4.0.1-beta-*",
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
"Microsoft.Net.Http.Headers": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.IO.FileSystem": "4.0.1-beta-*",
|
||||
"System.Runtime": "4.0.21-beta-*",
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
"Microsoft.Extensions.Primitives": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Collections": "4.0.11-beta-*",
|
||||
"System.Linq": "4.0.1-beta-*",
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
#if DNX451
|
||||
#if NET451
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
using System.Runtime.Remoting;
|
||||
#elif DNXCORE50
|
||||
#elif DOTNET5_4
|
||||
using System.Threading;
|
||||
#endif
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
{
|
||||
public class HttpContextAccessor : IHttpContextAccessor
|
||||
{
|
||||
#if DNX451
|
||||
#if NET451
|
||||
private const string LogicalDataKey = "__HttpContext_Current__";
|
||||
|
||||
public HttpContext HttpContext
|
||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
}
|
||||
}
|
||||
|
||||
#elif DNXCORE50
|
||||
#elif DOTNET5_4
|
||||
private AsyncLocal<HttpContext> _httpContextCurrent = new AsyncLocal<HttpContext>();
|
||||
public HttpContext HttpContext
|
||||
{
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
_position += read;
|
||||
return read;
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
|
@ -164,7 +164,7 @@ namespace Microsoft.AspNet.Http.Internal
|
|||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
"Microsoft.Net.Http.Headers": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Diagnostics.Debug": "4.0.11-beta-*",
|
||||
"System.Text.Encoding": "4.0.11-beta-*"
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
"Microsoft.AspNet.Http": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Collections": "4.0.11-beta-*",
|
||||
"System.ComponentModel": "4.0.1-beta-*",
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ namespace Microsoft.AspNet.WebUtilities
|
|||
{
|
||||
_inner.Write(buffer, offset, count);
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
{
|
||||
return _inner.BeginWrite(buffer, offset, count, callback, state);
|
||||
|
|
@ -198,7 +198,7 @@ namespace Microsoft.AspNet.WebUtilities
|
|||
|
||||
return await _inner.ReadAsync(buffer, offset, count, cancellationToken);
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
// We only anticipate using ReadAsync
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ namespace Microsoft.AspNet.WebUtilities
|
|||
|
||||
return read;
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
|
@ -239,7 +239,7 @@ namespace Microsoft.AspNet.WebUtilities
|
|||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ namespace Microsoft.AspNet.WebUtilities
|
|||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
|
|
@ -157,7 +157,7 @@ namespace Microsoft.AspNet.WebUtilities
|
|||
}
|
||||
return read;
|
||||
}
|
||||
#if DNX451
|
||||
#if NET451
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
var tcs = new TaskCompletionSource<int>(state);
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Collections": "4.0.11-beta-*",
|
||||
"System.Diagnostics.Debug": "4.0.11-beta-*",
|
||||
|
|
|
|||
|
|
@ -3,15 +3,8 @@
|
|||
"shared": "*.cs",
|
||||
"dependencies": {},
|
||||
"frameworks": {
|
||||
"net45": { },
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.Resources.ResourceManager": "4.0.1-beta-*",
|
||||
"System.Runtime": "4.0.21-beta-*"
|
||||
}
|
||||
},
|
||||
"dotnet": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Resources.ResourceManager": "4.0.1-beta-*",
|
||||
"System.Runtime": "4.0.21-beta-*"
|
||||
|
|
|
|||
|
|
@ -10,9 +10,8 @@
|
|||
"warningsAsErrors": true
|
||||
},
|
||||
"frameworks": {
|
||||
"net45": { },
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.ComponentModel": "4.0.1-beta-*",
|
||||
"System.Diagnostics.Debug": "4.0.11-beta-*",
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
"Microsoft.Extensions.WebEncoders.Core": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net45": { },
|
||||
"dnx451": { },
|
||||
"dnxcore50": { }
|
||||
"net451": {},
|
||||
"dotnet5.4": {}
|
||||
}
|
||||
}
|
||||
|
|
@ -9,9 +9,8 @@
|
|||
"warningsAsErrors": true
|
||||
},
|
||||
"frameworks": {
|
||||
"net45" : { },
|
||||
"dnx451" : { },
|
||||
"dnxcore50" : {
|
||||
"net451": {},
|
||||
"dotnet5.4": {
|
||||
"dependencies": {
|
||||
"System.Collections": "4.0.11-beta-*",
|
||||
"System.Diagnostics.Contracts": "4.0.1-beta-*",
|
||||
|
|
|
|||
Loading…
Reference in New Issue