public static DirectoryPathCollection VSWhereProducts(this ICakeContext context, string products, VSWhereProductSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (string.IsNullOrWhiteSpace(products)) { throw new ArgumentNullException(nameof(products)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } settings.Products = products; var product = new VSWhereProduct(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(product.Products(settings)); }
protected override void RunTool() { var tool = new VSWhereProduct(FileSystem, Environment, ProcessRunner, Tools); tool.Products(Settings); }