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 -->
|
<!-- Publish DotNet -->
|
||||||
<DotNetPublish ToolPath="$(Stage0Directory)"
|
<DotNetPublish ToolPath="$(Stage0Directory)"
|
||||||
|
Verbosity="normal"
|
||||||
Configuration="$(Configuration)"
|
Configuration="$(Configuration)"
|
||||||
ProjectPath="$(RootProject)" />
|
ProjectPath="$(RootProject)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
@ -9,14 +9,16 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
public abstract class DotNetMSBuildTool : DotNetTool
|
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
|
get
|
||||||
{
|
{
|
||||||
return $"{GetMaxCpuCountArg()}";
|
return $"{GetVerbosityArg()} {GetMaxCpuCountArg()}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetMaxCpuCountArg()
|
private string GetMaxCpuCountArg()
|
||||||
|
@ -28,5 +30,15 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string GetVerbosityArg()
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(Verbosity))
|
||||||
|
{
|
||||||
|
return $"--verbosity:{Verbosity}";
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue