aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Prebuild/src/Core/Parse/Preprocessor.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Prebuild/src/Core/Parse/Preprocessor.cs b/Prebuild/src/Core/Parse/Preprocessor.cs
index 9ac07b9..57d4062 100644
--- a/Prebuild/src/Core/Parse/Preprocessor.cs
+++ b/Prebuild/src/Core/Parse/Preprocessor.cs
@@ -607,7 +607,9 @@ namespace Prebuild.Core.Parse
607 // If preWildcard is a directory, recurse 607 // If preWildcard is a directory, recurse
608 if (Directory.Exists(preWildcard)) 608 if (Directory.Exists(preWildcard))
609 { 609 {
610 foreach (string dirPath in Directory.GetDirectories(preWildcard)) 610 string[] directories = Directory.GetDirectories(preWildcard);
611 Array.Sort(directories);
612 foreach (string dirPath in directories )
611 { 613 {
612 Console.WriteLine("Scanning : {0}", dirPath); 614 Console.WriteLine("Scanning : {0}", dirPath);
613 615
@@ -638,7 +640,9 @@ namespace Prebuild.Core.Parse
638 string searchDirectory = Path.GetDirectoryName(preWildcard); 640 string searchDirectory = Path.GetDirectoryName(preWildcard);
639 // Console.WriteLine("searchDirectory: {0}", searchDirectory); 641 // Console.WriteLine("searchDirectory: {0}", searchDirectory);
640 642
641 foreach (string includeFile in Directory.GetFiles(searchDirectory, searchFilename)) 643 string[] files = Directory.GetFiles(searchDirectory, searchFilename);
644 Array.Sort(files);
645 foreach (string includeFile in files)
642 { 646 {
643 FileInfo file = new FileInfo(includeFile); 647 FileInfo file = new FileInfo(includeFile);
644 if (file.Exists) 648 if (file.Exists)