2016-11-30 00:14:05 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
|
{
|
2017-03-14 21:07:51 +00:00
|
|
|
|
public sealed class RemoveReferenceCommand : DotnetCommand
|
2016-11-30 00:14:05 +00:00
|
|
|
|
{
|
|
|
|
|
private string _projectName = null;
|
|
|
|
|
|
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
|
{
|
2017-01-06 22:16:55 +00:00
|
|
|
|
args = $"remove {_projectName} reference {args}";
|
2016-11-30 00:14:05 +00:00
|
|
|
|
return base.ExecuteWithCapturedOutput(args);
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-06 22:16:55 +00:00
|
|
|
|
public RemoveReferenceCommand WithProject(string projectName)
|
2016-11-30 00:14:05 +00:00
|
|
|
|
{
|
|
|
|
|
_projectName = projectName;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|