Skip to content

dotnet test CLI accepts neither SOLUTION nor PROJECT arguments anymore #30368

New issue

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

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

Already on GitHub? # to your account

Closed
oliverzick opened this issue Feb 6, 2023 · 4 comments
Closed
Assignees
Labels
Area-CLI untriaged Request triage from a team member

Comments

@oliverzick
Copy link

oliverzick commented Feb 6, 2023

Describe the bug

Since change cdd5f3b the dotnet test CLI does not support any SOLUTION or PROJECT passed as argument.

In the change the following is mentioned:

// We are on purpose not capturing the solution, project or directory here. We want to pass it to the
// MSBuild command so we are letting it flow.

To Reproduce

Take any repository that can be tested with dotnet test and try to run dotnet test CLI by passing SOLUTION or PROJECT like

dotnet test <PathToSolutionFile.sln>

You will receive a message that SOLUTION or PROJECT argument cannot be recognized.

Further technical details

.NET SDK:
Version: 7.0.102
Commit: 4bbdd14

Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.102\

Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Feb 6, 2023
@IT-VBFK
Copy link

IT-VBFK commented Feb 12, 2023

#29543 (comment)

@nagilson
Copy link
Member

This should be fixed in 7.0.103, update this month when available. Report back if it still happens. And thanks @IT-VBFK for sharing that this is a duplicate.

@baronfel
Copy link
Member

It's available now!

@oliverzick
Copy link
Author

Thanks, haven't seen the already existing bug report because I have only searched for dotnet test together with solution.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants