You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running dotnet test with .NET 9 VSTest 17.12.0-preview-24453-04 (x64) will generate an invalid configuration for MSBuild which either causes the command to fail or to ignore arguments.
Run dotnet test GenHTTP.sln -d --no-build --collect:"XPlat Code Coverage" -c Release -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
Expected behavior
Tests are executed and the solution is not built.
Actual behavior
Tests are executed but the solution is built, ignoring the --no-build flag. Diagnostics file used by the process is:
Logging Vstest Diagnostics in file: /home/runner/work/GenHTTP/GenHTTP/--no-build
Putting the flag -c Release directly after the solution name will cause MSBuild to fail stating that there are multiple projects built (because -c is appended to the diagnostics log and MSBuild is instructed to test GenHTTP.sln Release). So it seems that one argument is consumed and appended to the diagnostics log path but should not.
Describe the bug
Running
dotnet test
with .NET 9 VSTest 17.12.0-preview-24453-04 (x64) will generate an invalid configuration for MSBuild which either causes the command to fail or to ignore arguments.Steps To Reproduce
dotnet build GenHTTP.sln -c Release
dotnet test GenHTTP.sln -d --no-build --collect:"XPlat Code Coverage" -c Release -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
Expected behavior
Tests are executed and the solution is not built.
Actual behavior
Tests are executed but the solution is built, ignoring the
--no-build
flag. Diagnostics file used by the process is:Putting the flag
-c Release
directly after the solution name will cause MSBuild to fail stating that there are multiple projects built (because-c
is appended to the diagnostics log and MSBuild is instructed to testGenHTTP.sln Release
). So it seems that one argument is consumed and appended to the diagnostics log path but should not.Additional context
See this CI run as an example: https://github.com/Kaliumhexacyanoferrat/GenHTTP/actions/runs/11727877110/job/32670005611
Can reproduce both on Windows and Linux (GitHub runner).
Project is configured for both .NET 8 & .NET 9.
The text was updated successfully, but these errors were encountered: