Merge remote-tracking branch 'dotnet/master' into tab-completion

This commit is contained in:
Piotr Puszkiewicz 2017-03-10 12:03:01 -08:00
commit 0df2462344
4 changed files with 20 additions and 7 deletions

View file

@ -9,14 +9,16 @@ namespace Microsoft.DotNet.Cli.Build
{
public abstract class DotNetMSBuildTool : DotNetTool
{
public int MaxCpuCount {get; set;} = 0;
public int MaxCpuCount { get; set; } = 0;
protected override string Args
{
public string Verbosity { get; set; }
protected override string Args
{
get
{
return $"{GetMaxCpuCountArg()}";
}
return $"{GetVerbosityArg()} {GetMaxCpuCountArg()}";
}
}
private string GetMaxCpuCountArg()
@ -28,5 +30,15 @@ namespace Microsoft.DotNet.Cli.Build
return null;
}
private string GetVerbosityArg()
{
if (!string.IsNullOrEmpty(Verbosity))
{
return $"--verbosity:{Verbosity}";
}
return null;
}
}
}