Merge branch 'release/2.2'

This commit is contained in:
Stephen Halter 2018-11-16 16:21:08 -08:00
commit fb055cddf9
3 changed files with 12 additions and 2 deletions

View File

@ -15,7 +15,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal
public SocketAwaitableEventArgs WaitForDataAsync()
{
#if NETCOREAPP2_1
_awaitableEventArgs.SetBuffer(Memory<byte>.Empty);
#elif NETSTANDARD2_0
_awaitableEventArgs.SetBuffer(Array.Empty<byte>(), 0, 0);
#else
#error TFMs need to be updated
#endif
if (!_socket.ReceiveAsync(_awaitableEventArgs))
{

View File

@ -1,7 +1,6 @@
<Project>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
<!-- Not including parent is intentional, this build should be isolated -->
<Import Project="build\sources.props" />
<Import Project="build\dependencies.props" />
<Import Project="version.props" />

View File

@ -0,0 +1,5 @@
<Project>
<!-- Not including parent is intentional, this build should be isolated -->
</Project>