From e75941188af03af35e33b823a8f9a61756a83dc5 Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Sat, 31 May 2025 23:17:29 +0200 Subject: [PATCH] Drop target for .NET 6 that's no longer supported .NET 6 reached end-of-life on November 12, 2024: https://dotnet.microsoft.com/en-us/download/dotnet/6.0 --- .devcontainer/devcontainer.json | 2 +- MoreLinq.Test/MoreLinq.Test.csproj | 2 +- MoreLinq.shfbproj | 4 +- MoreLinq/CompatibilitySuppressions.xml | 73 +++++++++++++++++++++----- MoreLinq/MoreLinq.csproj | 6 +-- test.cmd | 2 - test.sh | 2 +- 7 files changed, 69 insertions(+), 22 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 211136b3b..52a3e1097 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -28,7 +28,7 @@ }, "ghcr.io/devcontainers/features/dotnet:2": { "version": "9.0.200", - "dotnetRuntimeVersions": "8.0.14, 6.0.36" + "dotnetRuntimeVersions": "8.0.14" }, "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": false, diff --git a/MoreLinq.Test/MoreLinq.Test.csproj b/MoreLinq.Test/MoreLinq.Test.csproj index 14eac8e11..e4ff90074 100644 --- a/MoreLinq.Test/MoreLinq.Test.csproj +++ b/MoreLinq.Test/MoreLinq.Test.csproj @@ -2,7 +2,7 @@ MoreLinq.Test - net9.0;net8.0;net6.0;net471 + net9.0;net8.0;net471 portable MoreLinq.Test Exe diff --git a/MoreLinq.shfbproj b/MoreLinq.shfbproj index 92e3b25c4..7cb4ef247 100644 --- a/MoreLinq.shfbproj +++ b/MoreLinq.shfbproj @@ -31,8 +31,8 @@ OnlyWarningsAndErrors 100 - - + + Website http://www.apache.org/licenses/LICENSE-2.0 diff --git a/MoreLinq/CompatibilitySuppressions.xml b/MoreLinq/CompatibilitySuppressions.xml index 2a8ffc7cc..a30059e7c 100644 --- a/MoreLinq/CompatibilitySuppressions.xml +++ b/MoreLinq/CompatibilitySuppressions.xml @@ -1,34 +1,34 @@ - + CP0002 M:MoreLinq.MoreEnumerable.ToDictionary``2(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,``1}},System.Collections.Generic.IEqualityComparer{``0}) - lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.ToDictionary``2(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,``1}}) - lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.ToDictionary``2(System.Collections.Generic.IEnumerable{System.ValueTuple{``0,``1}},System.Collections.Generic.IEqualityComparer{``0}) - lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.ToDictionary``2(System.Collections.Generic.IEnumerable{System.ValueTuple{``0,``1}}) - lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.SequenceException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) - lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll lib/net8.0/MoreLinq.dll @@ -83,36 +83,85 @@ CP0002 M:MoreLinq.MoreEnumerable.DistinctBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IEqualityComparer{``1}) lib/netstandard2.1/MoreLinq.dll - lib/net6.0/MoreLinq.dll + lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.DistinctBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1}) lib/netstandard2.1/MoreLinq.dll - lib/net6.0/MoreLinq.dll + lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.MaxBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IComparer{``1}) lib/netstandard2.1/MoreLinq.dll - lib/net6.0/MoreLinq.dll + lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.MaxBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1}) lib/netstandard2.1/MoreLinq.dll - lib/net6.0/MoreLinq.dll + lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.MinBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IComparer{``1}) lib/netstandard2.1/MoreLinq.dll - lib/net6.0/MoreLinq.dll + lib/net8.0/MoreLinq.dll CP0002 M:MoreLinq.MoreEnumerable.MinBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1}) lib/netstandard2.1/MoreLinq.dll - lib/net6.0/MoreLinq.dll + lib/net8.0/MoreLinq.dll + + + CP0008 + T:MoreLinq.OrderByDirection + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true + + + CP0002 + M:MoreLinq.MoreEnumerable.DistinctBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IEqualityComparer{``1}) + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true + + + CP0002 + M:MoreLinq.MoreEnumerable.DistinctBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1}) + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true + + + CP0002 + M:MoreLinq.MoreEnumerable.MaxBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IComparer{``1}) + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true + + + CP0002 + M:MoreLinq.MoreEnumerable.MaxBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1}) + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true + + + CP0002 + M:MoreLinq.MoreEnumerable.MinBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1},System.Collections.Generic.IComparer{``1}) + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true + + + CP0002 + M:MoreLinq.MoreEnumerable.MinBy``2(System.Collections.Generic.IEnumerable{``0},System.Func{``0,``1}) + lib/net6.0/MoreLinq.dll + lib/netstandard2.1/MoreLinq.dll + true diff --git a/MoreLinq/MoreLinq.csproj b/MoreLinq/MoreLinq.csproj index b164600ba..2acb0d22d 100644 --- a/MoreLinq/MoreLinq.csproj +++ b/MoreLinq/MoreLinq.csproj @@ -122,7 +122,7 @@ en-US 4.4.1 MoreLINQ Developers. - netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0 + netstandard2.0;netstandard2.1;net8.0;net9.0 portable true MoreLinq @@ -214,7 +214,7 @@ $(DefineConstants);MORELINQ - + $(DefineConstants);NO_STATIC_ABSTRACTS @@ -222,7 +222,7 @@ $(DefineConstants);NO_STATIC_ABSTRACTS;NO_ASYNC_STREAMS;NO_BUFFERS - + $(DefineConstants);DYNAMIC_CODE_FALLBACK diff --git a/test.cmd b/test.cmd index 87185c742..c931576a2 100644 --- a/test.cmd +++ b/test.cmd @@ -16,8 +16,6 @@ call :clean ^ && call :test net9.0 Release ^ && call :test net8.0 Debug ^ && call :test net8.0 Release ^ - && call :test net6.0 Debug ^ - && call :test net6.0 Release ^ && call :test net471 Debug ^ && call :test net471 Release ^ && call :report-cover ^ diff --git a/test.sh b/test.sh index a80e31dc0..a00d2a395 100755 --- a/test.sh +++ b/test.sh @@ -12,7 +12,7 @@ if [[ -z "$1" ]]; then else configs="$1" fi -for f in net6.0 net8.0 net9.0; do +for f in net8.0 net9.0; do for c in $configs; do dotnet test --no-build -c $c -f $f --settings MoreLinq.Test/coverlet.runsettings MoreLinq.Test TEST_RESULTS_DIR="$(ls -dc MoreLinq.Test/TestResults/* | head -1)"