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)); }
public static DirectoryPathCollection VSWhereProducts(this ICakeContext context, string products) { var settings = new VSWhereProductSettings(); return(VSWhereProducts(context, products, settings)); }