diff --git a/src/dotnet/commands/dotnet-test/Program.cs b/src/dotnet/commands/dotnet-test/Program.cs index ac7062f030..ac6fafe4ad 100644 --- a/src/dotnet/commands/dotnet-test/Program.cs +++ b/src/dotnet/commands/dotnet-test/Program.cs @@ -32,8 +32,7 @@ public static TestCommand FromArgs(string[] args, string msbuildPath = null) { "-target:VSTest", "-verbosity:quiet", - "-nodereuse:false", // workaround for https://github.com/Microsoft/vstest/issues/1503 - "-nologo" + "-nodereuse:false" // workaround for https://github.com/Microsoft/vstest/issues/1503 }; var parser = Parser.Instance; @@ -70,6 +69,12 @@ public static TestCommand FromArgs(string[] args, string msbuildPath = null) } } + // Add VSTestNoLogo property if specified by user + if(parsedTest.Arguments.Contains("--nologo") || parsedTest.Arguments.Contains("/nologo")) + { + msbuildArgs.Add($"-property:VSTestNoLogo=--nologo"); + } + bool noRestore = parsedTest.HasOption("--no-restore") || parsedTest.HasOption("--no-build"); return new TestCommand(