We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b4944 commit 9e60c64Copy full SHA for 9e60c64
Core/Compiler/ProjectCompiler.cs
@@ -21,7 +21,13 @@ public List<string> CompileTestProjects(DirectoryInfo projectDir)
21
{
22
List<string> files = new();
23
24
- foreach (string projectFile in Directory.EnumerateFiles(projectDir.FullName, "*Tests.csproj", SearchOption.AllDirectories))
+ EnumerationOptions enumerationOptions = new()
25
+ {
26
+ MaxRecursionDepth = 2,
27
+ RecurseSubdirectories = true
28
+ };
29
+
30
+ foreach (string projectFile in Directory.EnumerateFiles(projectDir.FullName, "*Tests.csproj", enumerationOptions))
31
32
string projectRoot = Path.GetDirectoryName(projectFile) ?? string.Empty;
33
0 commit comments