Merge pull request #8713 from livarcocc/clean_verbosity

Make the default verbosity for dotnet clean `normal`. This way we can…
This commit is contained in:
Livar 2018-03-06 10:36:23 -08:00 committed by GitHub
commit c83cafcf33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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")]