Skip to content

Commit

Permalink
Remove testing on .NET Core 3.1 that's no longer supported
Browse files Browse the repository at this point in the history
.NET Core 3.1 reached end-of-life on December 13, 2022:

https://dotnet.microsoft.com/en-us/download/dotnet/3.1
  • Loading branch information
atifaziz authored Jan 29, 2023
1 parent 3b5c013 commit 53b1217
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion MoreLinq.Test/MoreLinq.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<AssemblyTitle>MoreLinq.Test</AssemblyTitle>
<TargetFrameworks>net7.0;net6.0;netcoreapp3.1;net462</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0;net462</TargetFrameworks>
<DebugType>portable</DebugType>
<AssemblyName>MoreLinq.Test</AssemblyName>
<OutputType Condition="'$(TargetFramework)' == 'net462'">Exe</OutputType>
Expand Down
6 changes: 0 additions & 6 deletions MoreLinq.Test/NullArgumentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ static IEnumerable<ITestCaseData> GetNotNullTestCases() =>
Debug.Assert(e is not null);
var stackTrace = new StackTrace(e, false);
var stackFrame = stackTrace.GetFrames().First();
#if NETCOREAPP3_1
// Under .NET Core 3.1, "StackTrace.GetFrames()" was defined to return an array
// of nullable frame elements. See:
// https://github.com/dotnet/corefx/blob/v3.1.32/src/Common/src/CoreLib/System/Diagnostics/StackTrace.cs#L162
Debug.Assert(stackFrame is not null);
#endif
var actualType = stackFrame.GetMethod()?.DeclaringType;
Assert.That(actualType, Is.SameAs(typeof(MoreEnumerable)));
});
Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ install:
- eclint check -w "**/*.{cs,tt,cmd,sh,md,txt,yml,json,sln,csproj,shfbproj}"
- git reset --hard
- ps: if ($isWindows) { tools\dotnet-install.ps1 -JSonFile global.json }
- ps: if ($isWindows) { tools\dotnet-install.ps1 -Runtime dotnet -Version 3.1.10 -SkipNonVersionedFiles }
- ps: if ($isWindows) { tools\dotnet-install.ps1 -Runtime dotnet -Version 6.0.11 -SkipNonVersionedFiles }
- sh: ./tools/dotnet-install.sh --jsonfile global.json
- sh: ./tools/dotnet-install.sh --runtime dotnet --version 3.1.10 --skip-non-versioned-files
- sh: ./tools/dotnet-install.sh --runtime dotnet --version 6.0.11 --skip-non-versioned-files
- sh: export PATH="$HOME/.dotnet:$PATH"
before_build:
Expand Down
2 changes: 0 additions & 2 deletions test.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ call build ^
&& call :test net7.0 Release ^
&& call :test net6.0 Debug ^
&& call :test net6.0 Release ^
&& call :test netcoreapp3.1 Debug ^
&& call :test netcoreapp3.1 Release ^
&& call :test net462 Debug ^
&& call :test net462 Release ^
&& call :report-cover
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [[ -z "$1" ]]; then
else
configs="$1"
fi
for f in netcoreapp3.1 net6.0 net7.0; do
for f in net6.0 net7.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)"
Expand Down

0 comments on commit 53b1217

Please sign in to comment.