microsoft / microsoft/testfx

Nitpick: `dotnet test` with MTP shows incorrect target framework version

Open
#7,066 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/mtp
Dominant language
C#
Stars
1k
Forks
312
Avg merge
8h 30m
Merged PRs (30d)
469

Description

## Describe the bug

Image

You can see here that `dotnet test` is showing this as `net48`, when it's clearly `net472`. I don't know if this a difference between "the target framework you built with" vs. "the framework we're running with" (because you could say the same thing for `x64` vs. `AnyCPU`).

This is a nitpick for me. Not sure how important it is for other users.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the `dotnet test` output with Microsoft.Testing.Platform (MTP) for a project targeting `net472`, and compare the displayed framework with the project target. Trace the output entry point and determine whether the shown value represents the built target or the runtime framework; done means the reported version accurately reflects the intended target framework.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.