correct arguments for dotnet sln commands

This commit is contained in:
Jon Sequeira 2017-03-11 11:47:04 -08:00
parent 86f26550f1
commit 5c4db56d3b
5 changed files with 39 additions and 24 deletions

View file

@ -17,7 +17,7 @@ namespace Microsoft.DotNet.Tools.Sln.Add
private readonly AppliedOption _appliedCommand;
private readonly string _fileOrDirectory;
public AddProjectToSolutionCommand(AppliedOption appliedCommand)
public AddProjectToSolutionCommand(AppliedOption appliedCommand, string fileOrDirectory)
{
if (appliedCommand == null)
{
@ -25,7 +25,7 @@ namespace Microsoft.DotNet.Tools.Sln.Add
}
_appliedCommand = appliedCommand;
_fileOrDirectory = appliedCommand.Arguments.Single();
_fileOrDirectory = fileOrDirectory;
}
public override int Execute()