From 7f64811ccdd226b56d63262d9b6cd8b46de77abb Mon Sep 17 00:00:00 2001 From: Mikael Mengistu Date: Thu, 4 May 2017 14:05:58 -0700 Subject: [PATCH] Change targets (#437) Target netcoreapp2.0 --- .../Microsoft.AspNetCore.SignalR.Client.TS.csproj | 6 +++--- .../Microsoft.AspNetCore.SignalR.Test.Server.csproj | 3 +-- samples/SocketsSample/SocketsSample.csproj | 3 +-- .../Microsoft.AspNetCore.SignalR.Redis.csproj | 2 +- .../Microsoft.AspNetCore.SignalR.csproj | 2 +- .../Microsoft.AspNetCore.Sockets.csproj | 2 +- .../Microsoft.AspNetCore.WebSockets.Internal.csproj | 2 +- .../Microsoft.Extensions.WebSockets.Internal.csproj | 2 +- ...osoft.AspNetCore.SignalR.Client.FunctionalTests.csproj | 3 +-- .../Microsoft.AspNetCore.SignalR.Client.Tests.csproj | 3 +-- .../Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj | 2 +- .../Microsoft.AspNetCore.SignalR.Tests.csproj | 3 +-- .../Microsoft.AspNetCore.Sockets.Common.Tests.csproj | 3 +-- .../Microsoft.AspNetCore.Sockets.Tests.csproj | 3 +-- .../Autobahn/AutobahnTester.cs | 7 ------- ....AspNetCore.WebSockets.Internal.ConformanceTest.csproj | 8 +++----- .../Microsoft.Extensions.WebSockets.Internal.Tests.csproj | 3 +-- 17 files changed, 20 insertions(+), 37 deletions(-) diff --git a/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Microsoft.AspNetCore.SignalR.Client.TS.csproj b/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Microsoft.AspNetCore.SignalR.Client.TS.csproj index d8a1c31c04..3542d0c860 100644 --- a/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Microsoft.AspNetCore.SignalR.Client.TS.csproj +++ b/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Microsoft.AspNetCore.SignalR.Client.TS.csproj @@ -1,9 +1,9 @@ - + - netstandard1.0 + netcoreapp2.0 false @@ -41,7 +41,7 @@ @(ExecOutput) $(ModuleVersion)-$(VersionSuffix) - + diff --git a/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/Microsoft.AspNetCore.SignalR.Test.Server.csproj b/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/Microsoft.AspNetCore.SignalR.Test.Server.csproj index 347c683e66..85a9bfac17 100644 --- a/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/Microsoft.AspNetCore.SignalR.Test.Server.csproj +++ b/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/Microsoft.AspNetCore.SignalR.Test.Server.csproj @@ -25,8 +25,7 @@ - + diff --git a/samples/SocketsSample/SocketsSample.csproj b/samples/SocketsSample/SocketsSample.csproj index d63ad18414..33e881598a 100644 --- a/samples/SocketsSample/SocketsSample.csproj +++ b/samples/SocketsSample/SocketsSample.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - $(PackageTargetFallback);portable-net45+win8+wp8+wpa81 + netcoreapp2.0 false diff --git a/src/Microsoft.AspNetCore.SignalR.Redis/Microsoft.AspNetCore.SignalR.Redis.csproj b/src/Microsoft.AspNetCore.SignalR.Redis/Microsoft.AspNetCore.SignalR.Redis.csproj index ed51537e02..e60402fb46 100644 --- a/src/Microsoft.AspNetCore.SignalR.Redis/Microsoft.AspNetCore.SignalR.Redis.csproj +++ b/src/Microsoft.AspNetCore.SignalR.Redis/Microsoft.AspNetCore.SignalR.Redis.csproj @@ -4,7 +4,7 @@ Redis for ASP.NET Core SignalR. - netstandard1.6;net46 + netcoreapp2.0 $(NoWarn);CS1591 true aspnetcore;signalr diff --git a/src/Microsoft.AspNetCore.SignalR/Microsoft.AspNetCore.SignalR.csproj b/src/Microsoft.AspNetCore.SignalR/Microsoft.AspNetCore.SignalR.csproj index 1df16fb6a4..09b06c9380 100644 --- a/src/Microsoft.AspNetCore.SignalR/Microsoft.AspNetCore.SignalR.csproj +++ b/src/Microsoft.AspNetCore.SignalR/Microsoft.AspNetCore.SignalR.csproj @@ -4,7 +4,7 @@ Real-time communication framework for ASP.NET Core. - netstandard1.3 + netcoreapp2.0 $(NoWarn);CS1591 true aspnetcore;signalr diff --git a/src/Microsoft.AspNetCore.Sockets/Microsoft.AspNetCore.Sockets.csproj b/src/Microsoft.AspNetCore.Sockets/Microsoft.AspNetCore.Sockets.csproj index 32ea5521da..0247ea2f83 100644 --- a/src/Microsoft.AspNetCore.Sockets/Microsoft.AspNetCore.Sockets.csproj +++ b/src/Microsoft.AspNetCore.Sockets/Microsoft.AspNetCore.Sockets.csproj @@ -4,7 +4,7 @@ Components for providing real-time bi-directional communication across the Web. - netstandard1.3 + netcoreapp2.0 $(NoWarn);CS1591 true aspnetcore;signalr diff --git a/src/Microsoft.AspNetCore.WebSockets.Internal/Microsoft.AspNetCore.WebSockets.Internal.csproj b/src/Microsoft.AspNetCore.WebSockets.Internal/Microsoft.AspNetCore.WebSockets.Internal.csproj index d7e39ea46f..a7f2a2a39e 100644 --- a/src/Microsoft.AspNetCore.WebSockets.Internal/Microsoft.AspNetCore.WebSockets.Internal.csproj +++ b/src/Microsoft.AspNetCore.WebSockets.Internal/Microsoft.AspNetCore.WebSockets.Internal.csproj @@ -5,7 +5,7 @@ WebSockets support for ASP.NET Core. 0.1.0 - netstandard1.3 + netcoreapp2.0 $(NoWarn);CS1591 true aspnetcore;signalr diff --git a/src/Microsoft.Extensions.WebSockets.Internal/Microsoft.Extensions.WebSockets.Internal.csproj b/src/Microsoft.Extensions.WebSockets.Internal/Microsoft.Extensions.WebSockets.Internal.csproj index f4add8f3cf..6d15f40632 100644 --- a/src/Microsoft.Extensions.WebSockets.Internal/Microsoft.Extensions.WebSockets.Internal.csproj +++ b/src/Microsoft.Extensions.WebSockets.Internal/Microsoft.Extensions.WebSockets.Internal.csproj @@ -5,7 +5,7 @@ Low-allocation Push-oriented WebSockets based on Channels 0.1.0 - netstandard1.3 + netcoreapp2.0 $(NoWarn);CS1591 true true diff --git a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Microsoft.AspNetCore.SignalR.Client.FunctionalTests.csproj b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Microsoft.AspNetCore.SignalR.Client.FunctionalTests.csproj index 2e31ad6c55..ebdd46a343 100644 --- a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Microsoft.AspNetCore.SignalR.Client.FunctionalTests.csproj +++ b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Microsoft.AspNetCore.SignalR.Client.FunctionalTests.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true diff --git a/test/Microsoft.AspNetCore.SignalR.Client.Tests/Microsoft.AspNetCore.SignalR.Client.Tests.csproj b/test/Microsoft.AspNetCore.SignalR.Client.Tests/Microsoft.AspNetCore.SignalR.Client.Tests.csproj index 9e967081f6..74835160db 100644 --- a/test/Microsoft.AspNetCore.SignalR.Client.Tests/Microsoft.AspNetCore.SignalR.Client.Tests.csproj +++ b/test/Microsoft.AspNetCore.SignalR.Client.Tests/Microsoft.AspNetCore.SignalR.Client.Tests.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true diff --git a/test/Microsoft.AspNetCore.SignalR.Microbenchmarks/Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj b/test/Microsoft.AspNetCore.SignalR.Microbenchmarks/Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj index 642048f905..80bf3d91ce 100644 --- a/test/Microsoft.AspNetCore.SignalR.Microbenchmarks/Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj +++ b/test/Microsoft.AspNetCore.SignalR.Microbenchmarks/Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj @@ -4,7 +4,7 @@ Exe - netcoreapp2.0 + netcoreapp2.0 diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/Microsoft.AspNetCore.SignalR.Tests.csproj b/test/Microsoft.AspNetCore.SignalR.Tests/Microsoft.AspNetCore.SignalR.Tests.csproj index a36c212770..ff7f15ea88 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/Microsoft.AspNetCore.SignalR.Tests.csproj +++ b/test/Microsoft.AspNetCore.SignalR.Tests/Microsoft.AspNetCore.SignalR.Tests.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true diff --git a/test/Microsoft.AspNetCore.Sockets.Common.Tests/Microsoft.AspNetCore.Sockets.Common.Tests.csproj b/test/Microsoft.AspNetCore.Sockets.Common.Tests/Microsoft.AspNetCore.Sockets.Common.Tests.csproj index 8f400053c3..b8ae849b14 100644 --- a/test/Microsoft.AspNetCore.Sockets.Common.Tests/Microsoft.AspNetCore.Sockets.Common.Tests.csproj +++ b/test/Microsoft.AspNetCore.Sockets.Common.Tests/Microsoft.AspNetCore.Sockets.Common.Tests.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true diff --git a/test/Microsoft.AspNetCore.Sockets.Tests/Microsoft.AspNetCore.Sockets.Tests.csproj b/test/Microsoft.AspNetCore.Sockets.Tests/Microsoft.AspNetCore.Sockets.Tests.csproj index de078d4624..0f22dc0587 100644 --- a/test/Microsoft.AspNetCore.Sockets.Tests/Microsoft.AspNetCore.Sockets.Tests.csproj +++ b/test/Microsoft.AspNetCore.Sockets.Tests/Microsoft.AspNetCore.Sockets.Tests.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true diff --git a/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Autobahn/AutobahnTester.cs b/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Autobahn/AutobahnTester.cs index 3127769e31..f7ae2594d5 100644 --- a/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Autobahn/AutobahnTester.cs +++ b/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Autobahn/AutobahnTester.cs @@ -108,10 +108,6 @@ namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.Autobahn var result = await deployer.DeployAsync(); result.HostShutdownToken.ThrowIfCancellationRequested(); -#if NET46 - System.Net.ServicePointManager.ServerCertificateValidationCallback = (_, __, ___, ____) => true; - var client = new HttpClient(); -#elif NETCOREAPP2_0 var handler = new HttpClientHandler(); if (ssl) { @@ -121,9 +117,6 @@ namespace Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.Autobahn handler.ServerCertificateCustomValidationCallback = (_, __, ___, ____) => true; } var client = new HttpClient(handler); -#else -#error Target framework needs to be updated -#endif // Make sure the server works var resp = await RetryHelper.RetryRequest(() => diff --git a/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.csproj b/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.csproj index 85c71ae6f2..8bc84ab041 100644 --- a/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.csproj +++ b/test/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest/Microsoft.AspNetCore.WebSockets.Internal.ConformanceTest.csproj @@ -1,8 +1,7 @@  - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true @@ -15,12 +14,11 @@ + - - - + diff --git a/test/Microsoft.Extensions.WebSockets.Internal.Tests/Microsoft.Extensions.WebSockets.Internal.Tests.csproj b/test/Microsoft.Extensions.WebSockets.Internal.Tests/Microsoft.Extensions.WebSockets.Internal.Tests.csproj index a4a51430c6..a8f1ff2575 100644 --- a/test/Microsoft.Extensions.WebSockets.Internal.Tests/Microsoft.Extensions.WebSockets.Internal.Tests.csproj +++ b/test/Microsoft.Extensions.WebSockets.Internal.Tests/Microsoft.Extensions.WebSockets.Internal.Tests.csproj @@ -3,8 +3,7 @@ - netcoreapp2.0;net46 - netcoreapp2.0 + netcoreapp2.0 true true