dotnet test --diag somefile
fails (without .txt extension on filename)
#3045
Labels
dotnet test --diag somefile
fails (without .txt extension on filename)
#3045
Description
The
dotnet test
command fails when given a diagnostic file path that does not use.txt
as a file extension.The
--help
documentation on the command simply says:So I expect that
-d somefile
should work.Steps to reproduce
Run any test with the
dotnet test -d somefile
command (literally call itsomefile
-- don't change it tosomefile.txt
).Expected behavior
The test runs and
somefile
contains diagnostic logs.Actual behavior
The test runner fails with this error:
Diagnostic logs
LOL. No diag log available. That's the bug.
Environment
.NET SDK v5.0.400
Windows 10
The text was updated successfully, but these errors were encountered: