Move all test commands to DotNetCommand base
This commit is contained in:
parent
cb52224272
commit
fac34c7b3b
18 changed files with 19 additions and 107 deletions
|
@ -7,7 +7,7 @@ using NuGet.Frameworks;
|
|||
|
||||
namespace Microsoft.DotNet.Tools.Test.Utilities
|
||||
{
|
||||
public sealed class BuildCommand : TestCommand
|
||||
public sealed class BuildCommand : DotnetCommand
|
||||
{
|
||||
|
||||
private bool _captureOutput;
|
||||
|
@ -26,11 +26,6 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
|
||||
private DirectoryInfo _workingDirectory;
|
||||
|
||||
public BuildCommand()
|
||||
: base("dotnet")
|
||||
{
|
||||
}
|
||||
|
||||
public override CommandResult Execute(string args = "")
|
||||
{
|
||||
args = $"build {GetNoDependencies()} {GetProjectFile()} {GetOutputPath()} {GetConfiguration()} {GetFramework()} {GetRuntime()} {args}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue