diff --git a/.appveyor.yml b/.appveyor.yml
index 05a7c4ff85..7ca6d1770f 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -8,7 +8,7 @@ environment:
branches:
only:
- master
- - release
+ - /release\/.*/
- dev
- /^(.*\/)?ci-.*$/
build_script:
diff --git a/.travis.yml b/.travis.yml
index 05069ec25f..1a8a676d38 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,7 +21,7 @@ addons:
branches:
only:
- master
- - release
+ - /release\/.*/
- dev
- /^(.*\/)?ci-.*$/
install:
diff --git a/build/dependencies.props b/build/dependencies.props
index 4ac85faae8..9037161b08 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -21,7 +21,7 @@
2.0.0
2.1.0-preview1-26016-05
15.3.0
- 4.5.0-preview1-26016-05
+ 4.5.0-preview1-26119-06
2.3.1
2.3.1
diff --git a/scripts/UpdateCoreFxCode.ps1 b/scripts/UpdateCoreFxCode.ps1
deleted file mode 100644
index 09cfc3e448..0000000000
--- a/scripts/UpdateCoreFxCode.ps1
+++ /dev/null
@@ -1,44 +0,0 @@
-param([string]$CoreFxRepoRoot)
-
-$RepoRoot = Split-Path -Parent $PSScriptRoot
-
-$FilesToCopy = @(
- "src\Common\src\System\Net\WebSockets\ManagedWebSocket.cs",
- "src\Common\src\System\Net\WebSockets\WebSocketValidate.cs"
-)
-
-if(!$CoreFxRepoRoot) {
- $CoreFxRepoRoot = "$RepoRoot\..\..\dotnet\corefx"
-}
-
-if(!(Test-Path $CoreFxRepoRoot)) {
- throw "Could not find CoreFx repo at $CoreFxRepoRoot"
-}
-$CoreFxRepoRoot = Convert-Path $CoreFxRepoRoot
-
-$DestinationRoot = "$RepoRoot\src\Microsoft.AspNetCore.WebSockets\Internal\fx"
-
-$FilesToCopy | foreach {
- $Source = Join-Path $CoreFxRepoRoot $_
- $Destination = Join-Path $DestinationRoot $_
- $DestinationDir = Split-Path -Parent $Destination
-
- if(!(Test-Path $Source)) {
- Write-Warning "Can't find source file: $Source"
- } else {
- if(!(Test-Path $DestinationDir)) {
- mkdir $DestinationDir | Out-Null
- }
- if(Test-Path $Destination) {
- del $Destination
- }
- Write-Host "Copying $_"
-
- $SourceCode = [IO.File]::ReadAllText($Source)
- $SourceCode = $SourceCode.Replace("Task.FromException", "CompatHelpers.FromException")
- $SourceCode = $SourceCode.Replace("Task.CompletedTask", "CompatHelpers.CompletedTask")
- $SourceCode = $SourceCode.Replace("Array.Empty", "CompatHelpers.Empty")
- $SourceCode = $SourceCode.Replace("nameof(ClientWebSocket)", "`"ClientWebSocket`"")
- [IO.File]::WriteAllText($Destination, $SourceCode)
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNetCore.WebSockets/Internal/WebSocketFactory.cs b/src/Microsoft.AspNetCore.WebSockets/Internal/WebSocketFactory.cs
deleted file mode 100644
index d9f13b6d3d..0000000000
--- a/src/Microsoft.AspNetCore.WebSockets/Internal/WebSocketFactory.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) .NET Foundation. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System;
-using System.IO;
-using System.Net.WebSockets;
-
-namespace Microsoft.AspNetCore.WebSockets.Internal
-{
- public static class WebSocketFactory
- {
- public static WebSocket CreateClientWebSocket(Stream stream, string subProtocol, TimeSpan keepAliveInterval, int receiveBufferSize)
- {
- return ManagedWebSocket.CreateFromConnectedStream(
- stream,
- isServer: false,
- subprotocol: subProtocol,
- keepAliveInterval: keepAliveInterval,
- receiveBufferSize: receiveBufferSize);
- }
-
- public static WebSocket CreateServerWebSocket(Stream stream, string subProtocol, TimeSpan keepAliveInterval, int receiveBufferSize)
- {
- return ManagedWebSocket.CreateFromConnectedStream(
- stream,
- isServer: true,
- subprotocol: subProtocol,
- keepAliveInterval: keepAliveInterval,
- receiveBufferSize: receiveBufferSize);
- }
- }
-}
diff --git a/src/Microsoft.AspNetCore.WebSockets/Internal/fx/CompatHelpers.cs b/src/Microsoft.AspNetCore.WebSockets/Internal/fx/CompatHelpers.cs
deleted file mode 100644
index 420f3e7503..0000000000
--- a/src/Microsoft.AspNetCore.WebSockets/Internal/fx/CompatHelpers.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System.Threading.Tasks;
-
-namespace System.Net.WebSockets
-{
- // Needed to support the WebSockets code from CoreFX.
- internal static class CompatHelpers
- {
- internal static readonly Task CompletedTask;
-
- static CompatHelpers()
- {
- var tcs = new TaskCompletionSource