dotnet-installer/test/Microsoft.DotNet.Tools.Tests.Utilities/Commands/RemoveReferenceCommand.cs

25 lines
744 B
C#
Raw Normal View History

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
{
public sealed class RemoveReferenceCommand : DotnetCommand
2016-11-30 00:14:05 +00:00
{
private string _projectName = null;
public override CommandResult Execute(string args = "")
{
args = $"remove {_projectName} reference {args}";
2016-11-30 00:14:05 +00:00
return base.ExecuteWithCapturedOutput(args);
}
public RemoveReferenceCommand WithProject(string projectName)
2016-11-30 00:14:05 +00:00
{
_projectName = projectName;
return this;
}
}
}