Add logging for publishing src\redist.csproj
This commit is contained in:
parent
86f539e420
commit
43263cc9c3
2 changed files with 18 additions and 5 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
<!-- Publish DotNet -->
|
||||
<DotNetPublish ToolPath="$(Stage0Directory)"
|
||||
Verbosity="normal"
|
||||
Configuration="$(Configuration)"
|
||||
ProjectPath="$(RootProject)" />
|
||||
</Target>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue