Skip to content

[Repo Assist] chore: remove EOL netcoreapp3.1 test invocation from build script#476

Merged
smoothdeveloper merged 2 commits intomasterfrom
repo-assist/eng-remove-netcoreapp31-test-20260315-7bae84d6b8e9aedb
Mar 16, 2026
Merged

[Repo Assist] chore: remove EOL netcoreapp3.1 test invocation from build script#476
smoothdeveloper merged 2 commits intomasterfrom
repo-assist/eng-remove-netcoreapp31-test-20260315-7bae84d6b8e9aedb

Conversation

@github-actions
Copy link
Contributor

🤖 This is an automated PR from Repo Assist.

Summary

Remove a dead DotNet.test (dnTestOptions "netcoreapp3.1") call from build/build.fs.

Root Cause

build/build.fs runs tests against three targets:

DotNet.test (dnTestOptions "net462")      testSlnPath       // ✅ valid
DotNet.test (dnTestOptions "netcoreapp3.1") testProjectPath // ❌ EOL — not a target of the project
DotNet.test (dnTestOptions "net8.0")      testProjectPath   // ✅ valid

SqlClient.Tests.fsproj has (TargetFrameworks)net8.0;net462(/TargetFrameworks) — it has never targeted netcoreapp3.1. Running dotnet test --framework netcoreapp3.1 against a project that does not include that TFM produces a no-op or a warning. More importantly, .NET Core 3.1 reached end-of-life in December 2022 and should not appear in any active build script.

Fix

Remove the single line. The remaining two invocations cover both supported frameworks (net462 and net8.0).

Test Status

Build-script-only change. No library code modified. CI runs net462 and net8.0 test passes as before; the netcoreapp3.1 attempt is eliminated.

Generated by Repo Assist ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f

The test project (SqlClient.Tests.fsproj) targets net8.0 and net462 only;
it has never targeted netcoreapp3.1. Running dotnet test against a framework
the project does not target is a no-op at best and a spurious warning at
worst. .NET Core 3.1 reached end-of-life in December 2022.

Remove the dead invocation so the build script only tests against the
two supported frameworks: net462 (for .NET Framework) and net8.0 (for
modern .NET).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@smoothdeveloper smoothdeveloper marked this pull request as ready for review March 16, 2026 08:12
@smoothdeveloper smoothdeveloper merged commit b488403 into master Mar 16, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant