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
|
@ -3,6 +3,7 @@
|
|||
|
||||
using Microsoft.DotNet.Cli.CommandLine;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
using Microsoft.DotNet.Tools.MSBuild;
|
||||
|
||||
namespace Microsoft.DotNet.Tools.Publish
|
||||
{
|
||||
|
@ -43,6 +44,7 @@ namespace Microsoft.DotNet.Tools.Publish
|
|||
CommandOption versionSuffixOption = app.Option(
|
||||
"--version-suffix <VERSION_SUFFIX>", "Defines the value for the $(VersionSuffix) property in the project",
|
||||
CommandOptionType.SingleValue);
|
||||
CommandOption verbosityOption = MSBuildForwardingApp.AddVerbosityOption(app);
|
||||
|
||||
app.OnExecute(() =>
|
||||
{
|
||||
|
@ -54,6 +56,7 @@ namespace Microsoft.DotNet.Tools.Publish
|
|||
publish.OutputPath = outputOption.Value();
|
||||
publish.Configuration = configurationOption.Value();
|
||||
publish.VersionSuffix = versionSuffixOption.Value();
|
||||
publish.Verbosity = verbosityOption.Value();
|
||||
publish.ExtraMSBuildArguments = app.RemainingArguments;
|
||||
|
||||
return publish.Execute();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue