Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/dotnet/commands/dotnet-test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"))

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

{
msbuildArgs.Add($"-property:VSTestNoLogo=--nologo");
}

bool noRestore = parsedTest.HasOption("--no-restore") || parsedTest.HasOption("--no-build");

return new TestCommand(
Expand Down