Look for projects under a subdirectory in test and samples
This commit is contained in:
parent
7f1f8340d5
commit
74787d2ce6
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue