dotnet / dotnet/sdk

Previously working dotnet watch test command stopped working on .NET 9

Open
#50,776 1 comment 2 reactions 0 assignees View on GitHub
Area-Watch untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

we have a solution with a project that tests another project using NUnit.

script: (using bash on windows)
`dotnet watch --project Tests/Tests.csproj test`

used to work on <= .net 8. (and still works on mac with 9)

Now, it gives this error:

```
MSBUILD : error MSB1001: Unknown switch.
Full command line: 'C:\Program Files\dotnet\sdk\9.0.305\MSBuild.dll -maxcpucount -verbosity:m -tlp:default=auto -nologo -restore -nodereuse:false -target:VSTest -nologo --project Tests/Tests.csproj -property:VSTestArtifactsProcessingMode=collect -property:VSTestSessionCorrelationId=8336_fd6066aa-d88a-48e9-8f78-c6c6478911f9 -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\9.0.305\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\9.0.305\dotnet.dll'
Switches appended by response files:
Switch: --project
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.