diff --git a/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketReceiver.cs b/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketReceiver.cs index 5d33f49829..3c3451cbcc 100644 --- a/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketReceiver.cs +++ b/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketReceiver.cs @@ -15,7 +15,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal public SocketAwaitableEventArgs WaitForDataAsync() { +#if NETCOREAPP2_1 + _awaitableEventArgs.SetBuffer(Memory.Empty); +#elif NETSTANDARD2_0 _awaitableEventArgs.SetBuffer(Array.Empty(), 0, 0); +#else +#error TFMs need to be updated +#endif if (!_socket.ReceiveAsync(_awaitableEventArgs)) { diff --git a/src/SiteExtensions/build/repo.props b/src/SiteExtensions/build/repo.props index 25129c9001..419564007a 100644 --- a/src/SiteExtensions/build/repo.props +++ b/src/SiteExtensions/build/repo.props @@ -5,4 +5,8 @@ + + $(RepositoryRoot)eng\signcheck.exclusions.txt + + diff --git a/src/SiteExtensions/eng/signcheck.exclusions.txt b/src/SiteExtensions/eng/signcheck.exclusions.txt new file mode 100644 index 0000000000..77d94eceda --- /dev/null +++ b/src/SiteExtensions/eng/signcheck.exclusions.txt @@ -0,0 +1 @@ +content/store/*/apphost.exe;Microsoft.AspNetCore.AzureAppServices.SiteExtension.*.nupkg; Exclude the apphost because this is expected to be code-signed by customers after the SDK modifies it.