Make the default verbosity for dotnet clean normal. This way we can get some meaningful output out of the command.

This commit is contained in:
Livar Cunha 2018-03-01 14:09:06 -08:00
parent f9c40ce94d
commit 6072355340
3 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,10 @@ namespace Microsoft.DotNet.Tools.Clean
public static CleanCommand FromArgs(string[] args, string msbuildPath = null)
{
var msbuildArgs = new List<string>();
var msbuildArgs = new List<string>
{
"/v:normal"
};
var parser = Parser.Instance;

View file

@ -10,14 +10,14 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
{
public class GivenDotnetCleanInvocation
{
const string ExpectedPrefix = "exec <msbuildpath> /m /v:m /t:Clean";
const string ExpectedPrefix = "exec <msbuildpath> /m /v:m /v:normal /t:Clean";
[Fact]
public void ItAddsProjectToMsbuildInvocation()
{
var msbuildPath = "<msbuildpath>";
CleanCommand.FromArgs(new string[] { "<project>" }, msbuildPath)
.GetProcessStartInfo().Arguments.Should().Be("exec <msbuildpath> /m /v:m <project> /t:Clean");
.GetProcessStartInfo().Arguments.Should().Be("exec <msbuildpath> /m /v:m /v:normal <project> /t:Clean");
}
[Theory]

View file

@ -34,7 +34,6 @@ namespace Microsoft.DotNet.Cli.MSBuild.IntegrationTests
[Theory]
[InlineData("build")]
[InlineData("clean")]
[InlineData("msbuild")]
[InlineData("pack")]
[InlineData("publish")]