public ICommand Create( string commandName, IEnumerable <string> args, NuGetFramework framework = null, string configuration = null) { if (string.IsNullOrEmpty(configuration)) { configuration = _configuration; } if (framework == null) { framework = _nugetFramework; } var commandSpec = FindProjectDependencyCommands( commandName, args, configuration, framework, _outputPath, _buildBasePath, _projectDirectory); return(CommandFactoryUsingResolver.Create(commandSpec)); }
public ICommand Create( string commandName, IEnumerable <string> args, NuGetFramework framework = null, string configuration = Constants.DefaultConfiguration) { return(CommandFactoryUsingResolver.Create(commandName, args, framework, configuration, _publishDirectory, _applicationName)); }
public ICommand Create( string commandName, IEnumerable <string> args, NuGetFramework framework = null, string configuration = Constants.DefaultConfiguration) { var commandResolverArgs = new CommandResolverArguments() { CommandName = commandName, CommandArguments = args, DepsJsonFile = _depsJsonFile }; var commandSpec = _depsJsonCommandResolver.Resolve(commandResolverArgs); return(CommandFactoryUsingResolver.Create(commandSpec)); }