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

            return(VSWhereProducts(context, products, settings));
        }