DEV Community

Wallism
Wallism

Posted on

Failed to negotiate protocol, waiting for response timed out

After upgrading to .Net 6 running dotnet test myproj.csproj failed with this error:

Failed to negotiate protocol, waiting for response timed out after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout.

I found the solution here.

And in case that link disappears, basically you need to add to following to the test project:
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay