Skip to content
Discussion options

You must be logged in to vote

Test Explorer uses Json RPC protocol as of today.
The dotnet test coming in .NET 10 will use pipe protocol, but it will not be using the --internal-msbuild-node. It will be using --server dotnettestcli.

I haven't checked what exactly you do when you detect you are running in server mode, but if you are looking specifically for Json RPC, then:

bool hasServerFlag = commandLineHandler.TryGetOptionArgumentList(PlatformCommandLineProvider.ServerOptionKey, out string[]? protocolName);
bool isJsonRpcProtocol = protocolName is null || protocolName.Length == 0 || protocolName[0].Equals

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@bradwilson
Comment options

@nohwnd
Comment options

@Evangelink
Comment options

Comment options

You must be logged in to vote
5 replies
@bradwilson
Comment options

@Youssef1313
Comment options

@bradwilson
Comment options

@bradwilson
Comment options

@bradwilson
Comment options

Answer selected by bradwilson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants