From 6e7bdab66580b94b5d013041305b8a05b44be2e4 Mon Sep 17 00:00:00 2001 From: skwasjer <11424653+skwasjer@users.noreply.github.com> Date: Fri, 17 Nov 2023 23:45:09 +0100 Subject: [PATCH] test: replace .NET Core 3.1 with .NET 6.0 (testing our runtime .NET Standard 2.0 packages) to avoid EOL warnings/test failures in CI --- test/Correlate.Core.Tests/Correlate.Core.Tests.csproj | 2 +- .../Correlate.DependencyInjection.Tests.csproj | 2 +- .../IHttpClientBuilderExtensionsTests.cs | 4 ---- test/Correlate.Testing/Correlate.Testing.csproj | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/test/Correlate.Core.Tests/Correlate.Core.Tests.csproj b/test/Correlate.Core.Tests/Correlate.Core.Tests.csproj index 8562823..af6df51 100644 --- a/test/Correlate.Core.Tests/Correlate.Core.Tests.csproj +++ b/test/Correlate.Core.Tests/Correlate.Core.Tests.csproj @@ -1,7 +1,7 @@  - net9.0;net8.0;netcoreapp3.1 + net9.0;net8.0;net6.0 $(TargetFrameworks);netx.0 true Correlate diff --git a/test/Correlate.DependencyInjection.Tests/Correlate.DependencyInjection.Tests.csproj b/test/Correlate.DependencyInjection.Tests/Correlate.DependencyInjection.Tests.csproj index 479e78f..a87a19b 100644 --- a/test/Correlate.DependencyInjection.Tests/Correlate.DependencyInjection.Tests.csproj +++ b/test/Correlate.DependencyInjection.Tests/Correlate.DependencyInjection.Tests.csproj @@ -1,7 +1,7 @@  - net9.0;net8.0;netcoreapp3.1 + net9.0;net8.0;net6.0 $(TargetFrameworks);netx.0 true Correlate.DependencyInjection diff --git a/test/Correlate.DependencyInjection.Tests/IHttpClientBuilderExtensionsTests.cs b/test/Correlate.DependencyInjection.Tests/IHttpClientBuilderExtensionsTests.cs index 8051e8e..2d9d0a7 100644 --- a/test/Correlate.DependencyInjection.Tests/IHttpClientBuilderExtensionsTests.cs +++ b/test/Correlate.DependencyInjection.Tests/IHttpClientBuilderExtensionsTests.cs @@ -60,11 +60,7 @@ protected override IEnumerable TestCases() // AddHttpMessageHandler with options: yield return new ExpectedRegistration, ConfigureNamedOptions>(ServiceLifetime.Singleton); -#if NETCOREAPP3_1_OR_GREATER yield return new ExpectedRegistration>(ServiceLifetime.Singleton); -#else - yield return new ExpectedRegistration>(ServiceLifetime.Transient); -#endif yield return new ExpectedRegistration(ServiceLifetime.Transient); } } diff --git a/test/Correlate.Testing/Correlate.Testing.csproj b/test/Correlate.Testing/Correlate.Testing.csproj index c4be9b5..f4dc285 100644 --- a/test/Correlate.Testing/Correlate.Testing.csproj +++ b/test/Correlate.Testing/Correlate.Testing.csproj @@ -1,7 +1,7 @@  - net9.0;net8.0;netstandard2.1 + net9.0;net8.0;net6.0 $(TargetFrameworks);netx.0 false @@ -10,7 +10,7 @@ 8.0.0 - + 3.1.0