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 a38706f commit 056fd76Copy full SHA for 056fd76
build.cs
@@ -1,22 +1,9 @@
1
var root = Directory.GetCurrentDirectory();
2
-foreach (var scripts in GetScripts(root))
+foreach (var scripts in Directory.GetFiles(root, "*.cs", SearchOption.AllDirectories))
3
{
4
foreach (var script in scripts)
5
6
Console.WriteLine($"Compile script {script} test");
7
CommandExecutor.ExecuteCommandAndOutput($"dotnet-exec {script} --dry-run").EnsureSuccessExitCode();
8
}
9
10
-
11
-IEnumerable<string[]> GetScripts(string root)
12
-{
13
- foreach (var dir in Directory.GetDirectories(root))
14
- {
15
- yield return Directory.GetFiles(dir, "*.cs");
16
17
- foreach (var scripts in GetScripts(dir))
18
19
- yield return scripts;
20
- }
21
22
-}
0 commit comments