Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net9.0 SDK dotnet test does not honor -f with a multi-targeted test project #5280

Open
BruceRigg2 opened this issue Mar 20, 2025 · 1 comment
Labels

Comments

@BruceRigg2
Copy link

Describe the bug

if a test project targets net48;net8.0

dotnet test -f net48

runs both frameworks

Steps To Reproduce

create any test project that targets multiple frameworks net48;net8.0

Expected behavior

dotnet test
should run both frameworks

dotnet test -f net48
should run just net48

Actual behavior

dotnet test
runs both frameworks

dotnet test -f net48
also runs both frameworks

Additional context

It would appear that

dotnet test  --filter

also does not work

@Youssef1313
Copy link
Member

Youssef1313 commented Mar 20, 2025

Hi @BruceRigg2 👋

I'm not able to reproduce this. Are you using VSTest or Microsoft.Testing.Platform? Could you share a binlog when running dotnet test (you do so by adding -bl, and it will produce a file named msbuild.binlog)? If you wish, you can share the binlog privately via Developer Community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants