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
Setting DOTNET_CLI_TEST_TRACEFILE to artifacts\TestResults\dotnet-test-trace-logs.txt will fail if artifacts\TestResults directory doesn't exist. I think it's a good idea if dotnet test creates the directory instead of failing.
2025-03-10T14:22:48.8265690Z [dotnet test - 03/10/2025 14:22:48.820]System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\a\_work\1\s\artifacts\TestResults\dotnet-test-trace-logs.txt'.
2025-03-10T14:22:48.8266204Z at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
2025-03-10T14:22:48.8266505Z at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
2025-03-10T14:22:48.8267030Z at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
2025-03-10T14:22:48.8267600Z at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
2025-03-10T14:22:48.8268021Z at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Int32 bufferSize)
2025-03-10T14:22:48.8268276Z at System.IO.File.AppendText(String path)
2025-03-10T14:22:48.8268511Z at Microsoft.DotNet.Tools.Test.Logger.LogTrace(Func`1 messageLog)
The text was updated successfully, but these errors were encountered:
Setting
DOTNET_CLI_TEST_TRACEFILE
toartifacts\TestResults\dotnet-test-trace-logs.txt
will fail ifartifacts\TestResults
directory doesn't exist. I think it's a good idea ifdotnet test
creates the directory instead of failing.The text was updated successfully, but these errors were encountered: