Unit Tests should only test on net462 and net10

Open
#5,973 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp

Research direction

Start by locating the unit-test projects and build scripts that define the NET35, NET45, NET46, and NET8 test targets. Compare how those targets are built and run, then confirm that tests run only on NET462 and NET8 while the legacy targets remain covered by compilation; the issue also leaves the xUnit v3 versus MsTest/VsTest choice open.

Written by the indexing model from the issue text.

Description

platform support unit-tests

Instead of spending a lot of energy (both in maintaining build-scripts and build-server-time) on unit-testing on various platforms (NET35 + NET45 + NET46 + NET8), then instead just test with (NET462 + NET8).

Instead trust that if it compiles then it works on NET35 + NET45, since legacy platforms.

This will open the door for changing to xUnit v3, or maybe just use MsTest/VsTest ?

Dominant language
C#
Stars
6.5k
Forks
1.4k
Avg merge
1d 10h
Merged PRs (30d)
34

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NLog/NLog

All issues in NLog/NLog

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.