parent
02827620f8
commit
0e4719ee95
8 changed files with 94 additions and 27 deletions
|
@ -31,17 +31,21 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
_framework = framework;
|
||||
_runtime = runtime;
|
||||
_output = output;
|
||||
_config = config;
|
||||
_config = config;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override CommandResult Execute(string args="")
|
||||
{
|
||||
{
|
||||
args = $"publish {BuildArgs()} {args}";
|
||||
return base.Execute(args);
|
||||
}
|
||||
|
||||
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
||||
{
|
||||
args = $"publish {BuildArgs()} {args}";
|
||||
return base.ExecuteWithCapturedOutput(args);
|
||||
}
|
||||
|
||||
public string ProjectName
|
||||
{
|
||||
get
|
||||
|
@ -52,9 +56,9 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
|
||||
private string BuildRelativeOutputPath()
|
||||
{
|
||||
// lets try to build an approximate output path
|
||||
// lets try to build an approximate output path
|
||||
string config = string.IsNullOrEmpty(_config) ? "Debug" : _config;
|
||||
string framework = string.IsNullOrEmpty(_framework) ?
|
||||
string framework = string.IsNullOrEmpty(_framework) ?
|
||||
_project.GetTargetFrameworks().First().FrameworkName.GetShortFolderName() : _framework;
|
||||
string runtime = string.IsNullOrEmpty(_runtime) ? PlatformServices.Default.Runtime.GetLegacyRestoreRuntimeIdentifier() : _runtime;
|
||||
string output = Path.Combine("bin", config, framework, runtime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue