private static void ExcludeFiles(List <PhysicalPackageFile> searchFiles, string basePath, string exclude) { if (!string.IsNullOrEmpty(exclude)) { char[] separator = new char[] { ';' }; foreach (string str in exclude.Split(separator, StringSplitOptions.RemoveEmptyEntries)) { string str2 = PathResolver.NormalizeWildcardForExcludedFiles(basePath, str); string[] wildcards = new string[] { str2 }; PathResolver.FilterPackageFiles <PhysicalPackageFile>(searchFiles, p => p.SourcePath, wildcards); } } }
private static void ExcludeFiles(List <PhysicalPackageFile> searchFiles, string basePath, string exclude) { if (String.IsNullOrEmpty(exclude)) { return; } // One or more exclusions may be specified in the file. Split it and prepend the base path to the wildcard provided. var exclusions = exclude.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); foreach (var item in exclusions) { string wildCard = PathResolver.NormalizeWildcardForExcludedFiles(basePath, item); PathResolver.FilterPackageFiles(searchFiles, p => p.SourcePath, new[] { wildCard }); } }