From 74787d2ce68fba46451bb68352818739a92bc981 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Wed, 23 Mar 2016 11:46:16 -0700 Subject: [PATCH] Look for projects under a subdirectory in test and samples --- makefile.shade | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/makefile.shade b/makefile.shade index 744007ef33..9cfdf38de2 100644 --- a/makefile.shade +++ b/makefile.shade @@ -151,7 +151,7 @@ var buildTarget = "compile" foreach (var batch in batchedRepos) { - Parallel.ForEach(batch.ToArray(), new ParallelOptions { MaxDegreeOfParallelism = IsLinux ? 1 : 4 }, repo => + Parallel.ForEach(batch.ToArray(), new ParallelOptions { MaxDegreeOfParallelism = 4 }, repo => { var blockName = string.Format("Building {0}", repo); @@ -997,6 +997,18 @@ functions { GetDependencies(projectJson, info.DependencyNames); } + else + { + // Look for test\Websites\WebsiteName\project.json + foreach (var subDirectory in Directory.EnumerateDirectories(directory)) + { + projectJson = Path.Combine(subDirectory, "project.json"); + if (File.Exists(projectJson)) + { + GetDependencies(projectJson, info.DependencyNames); + } + } + } } } }