Fix 4508: CLI verbs that call into msbuild should control their output (#4719)
* Fix 4508: CLI verbs that call into msbuild should control their output * fix failing tests + tiny bufix in dotnet test
This commit is contained in:
parent
43df9a170d
commit
7a3bc96f75
11 changed files with 128 additions and 5 deletions
|
@ -65,6 +65,8 @@ namespace Microsoft.DotNet.Tools.Restore
|
|||
"Set this flag to ignore project to project references and only restore the root project",
|
||||
CommandOptionType.NoValue);
|
||||
|
||||
CommandOption verbosityOption = MSBuildForwardingApp.AddVerbosityOption(cmd);
|
||||
|
||||
cmd.OnExecute(() =>
|
||||
{
|
||||
var msbuildArgs = new List<string>()
|
||||
|
@ -109,6 +111,11 @@ namespace Microsoft.DotNet.Tools.Restore
|
|||
msbuildArgs.Add($"/p:RestoreRecursive=false");
|
||||
}
|
||||
|
||||
if (verbosityOption.HasValue())
|
||||
{
|
||||
msbuildArgs.Add($"/verbosity:{verbosityOption.Value()}");
|
||||
}
|
||||
|
||||
// Add in arguments
|
||||
msbuildArgs.AddRange(argRoot.Values);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue