From da6c7bca2d8f957e7e7259a5f212784eb1a7c7f8 Mon Sep 17 00:00:00 2001 From: Mathieu Cartoixa Date: Sat, 16 Jan 2021 14:02:17 +0100 Subject: [PATCH] Add the $(VSTestUseConsole) property to the `dotnet test` command (prerequisite to vstest#680 fix) --- src/Cli/dotnet/commands/dotnet-test/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cli/dotnet/commands/dotnet-test/Program.cs b/src/Cli/dotnet/commands/dotnet-test/Program.cs index db91d18fc067..a9ca43046458 100644 --- a/src/Cli/dotnet/commands/dotnet-test/Program.cs +++ b/src/Cli/dotnet/commands/dotnet-test/Program.cs @@ -34,7 +34,8 @@ public static TestCommand FromArgs(string[] args, string[] settings, string msbu { "-target:VSTest", "-nodereuse:false", // workaround for https://github.com/Microsoft/vstest/issues/1503 - "-nologo" + "-nologo", + "-property:VSTestUseConsole=True" // will colorize console output, but lose the MSBuild logs }; msbuildArgs.AddRange(result.OptionValuesToBeForwarded(TestCommandParser.GetCommand()));