parent
3ec5279491
commit
a4776a2b2c
24 changed files with 1036 additions and 35 deletions
|
@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
protected override string Args
|
||||
{
|
||||
get { return $"{GetProjectPath()} {GetConfiguration()} {GetFramework()} {GetNativeSubdirectory()} {GetBuildBasePath()} {GetOutput()} {GetVersionSuffix()}"; }
|
||||
get { return $"{GetProjectPath()} {GetConfiguration()} {GetFramework()} {GetNativeSubdirectory()} {GetBuildBasePath()} {GetOutput()} {GetVersionSuffix()} {GetRuntime()} {GetMSBuildArgs()}"; }
|
||||
}
|
||||
|
||||
public string BuildBasePath { get; set; }
|
||||
|
@ -23,10 +23,14 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
public bool NativeSubDirectory { get; set; }
|
||||
|
||||
public string MSBuildArgs { get; set; }
|
||||
|
||||
public string Output { get; set; }
|
||||
|
||||
public string ProjectPath { get; set; }
|
||||
|
||||
public string Runtime { get; set; }
|
||||
|
||||
public string VersionSuffix { get; set; }
|
||||
|
||||
private string GetBuildBasePath()
|
||||
|
@ -69,6 +73,16 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
return null;
|
||||
}
|
||||
|
||||
private string GetMSBuildArgs()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(MSBuildArgs))
|
||||
{
|
||||
return $"-- {MSBuildArgs}";
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private string GetOutput()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Output))
|
||||
|
@ -89,6 +103,16 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
return null;
|
||||
}
|
||||
|
||||
private string GetRuntime()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Runtime))
|
||||
{
|
||||
return $"--runtime {Runtime}";
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private string GetVersionSuffix()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(VersionSuffix))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue