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

dotnet watch test --project <project>: gives MSBUILD : error MSB1001: Unknown switch #45634

Open
FlukeFan opened this issue Dec 27, 2024 · 0 comments
Labels
Area-DotNet Test untriaged Request triage from a team member

Comments

@FlukeFan
Copy link

FlukeFan commented Dec 27, 2024

Describe the bug

using dotnet watch test --project <project> gives the error:

MSBUILD : error MSB1001: Unknown switch.

To Reproduce

> dotnet new nunit --name UnitTests
> dotnet watch test --project UnitTests

gives:

MSBUILD : error MSB1001: Unknown switch.
    Full command line: 'C:\Program Files\dotnet\sdk\9.0.101\MSBuild.dll -maxcpucount -verbosity:m -tlp:default=auto -nologo -restore --property:VsTestUseMSBuildOutput=true -target:VSTest -nologo --project UnitTests -property:VSTestArtifactsProcessingMode=collect -property:VSTestSessionCorrelationId=5260_ac4d8286-281f-4973-bb3c-86e51e6ef8da -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\9.0.101\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\9.0.101\dotnet.dll'
  Switches appended by response files:
Switch: --project

Further technical details

dotnet --version
9.0.101
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-DotNet Test untriaged Request triage from a team member labels Dec 27, 2024
@FlukeFan FlukeFan changed the title dotnet watch --project <project> test: gives MSBUILD : error MSB1001: Unknown switch dotnet watch test --project <project>: gives MSBUILD : error MSB1001: Unknown switch Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-DotNet Test untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant