Dotnet test task is taking long time and getting failed (Stdio did not close within 10 sec)

Ravinder Reddy 40 Reputation points
2025-03-17T17:53:17.0366667+00:00

Dotnet test task is taking long time and getting failed (Stdio did not close within 10 sec)

Azure DevOps
0 comments No comments
{count} votes

Accepted answer
  1. Damilola Onadeinde 475 Reputation points
    2025-03-18T08:09:22.2766667+00:00

    An old colleague of mine had similar issue. After a long series of troubleshooting, this was what resolved it. We replaced the DotNetCoreCLI@2 task with a 'powershell' task.

    - powershell: |
        dotnet test your.dll --no-restore --logger trx
      displayName: dotnet2powershelltest
    

    Let me know if this resolved your issue.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.