Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 6072355

Browse files
author
Livar Cunha
committed
Make the default verbosity for dotnet clean normal. This way we can get some meaningful output out of the command.
1 parent f9c40ce commit 6072355

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/dotnet/commands/dotnet-clean/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public CleanCommand(IEnumerable<string> msbuildArgs, string msbuildPath = null)
1919

2020
public static CleanCommand FromArgs(string[] args, string msbuildPath = null)
2121
{
22-
var msbuildArgs = new List<string>();
22+
var msbuildArgs = new List<string>
23+
{
24+
"/v:normal"
25+
};
2326

2427
var parser = Parser.Instance;
2528

test/dotnet-msbuild.Tests/GivenDotnetCleanInvocation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
1010
{
1111
public class GivenDotnetCleanInvocation
1212
{
13-
const string ExpectedPrefix = "exec <msbuildpath> /m /v:m /t:Clean";
13+
const string ExpectedPrefix = "exec <msbuildpath> /m /v:m /v:normal /t:Clean";
1414

1515
[Fact]
1616
public void ItAddsProjectToMsbuildInvocation()
1717
{
1818
var msbuildPath = "<msbuildpath>";
1919
CleanCommand.FromArgs(new string[] { "<project>" }, msbuildPath)
20-
.GetProcessStartInfo().Arguments.Should().Be("exec <msbuildpath> /m /v:m <project> /t:Clean");
20+
.GetProcessStartInfo().Arguments.Should().Be("exec <msbuildpath> /m /v:m /v:normal <project> /t:Clean");
2121
}
2222

2323
[Theory]

test/msbuild.IntegrationTests/GivenDotnetInvokesMSBuild.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public void When_dotnet_command_invokes_msbuild_Then_env_vars_and_m_are_passed(s
3434

3535
[Theory]
3636
[InlineData("build")]
37-
[InlineData("clean")]
3837
[InlineData("msbuild")]
3938
[InlineData("pack")]
4039
[InlineData("publish")]

0 commit comments

Comments
 (0)