Support multi-part code values during project generation

This commit is contained in:
Brice Lambson 2014-03-09 16:59:32 -07:00
parent 53e3ea15c9
commit 6aab876f00
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ functions
var sourceExcludePattern = Get<string>(d, "exclude") ?? "";
var objPath = Path.Combine(projectDir, "obj");
var objPattern = Directory.Exists(objPath) ? Path.Combine(objPath, "**", "*.*") : projectDir;
var csFiles = String.Join(Environment.NewLine, Files.Include(Path.Combine(projectDir, sourcePattern))
var csFiles = String.Join(Environment.NewLine, Files.Include(sourcePattern.Split(Path.PathSeparator).Select(p => Path.Combine(projectDir, p)).ToArray())
.Exclude(Path.Combine(projectDir, sourceExcludePattern))
.Exclude(objPattern)
.Select(p => resxDesignerFiles.Contains(p)