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 056fd76 commit 214c235Copy full SHA for 214c235
build.cs
@@ -1,9 +1,6 @@
1
-var root = Directory.GetCurrentDirectory();
2
-foreach (var scripts in Directory.GetFiles(root, "*.cs", SearchOption.AllDirectories))
+foreach (var script in Directory.GetFiles(Directory.GetCurrentDirectory(), "*.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
- }
+ Console.WriteLine($"Compile script {script} test begin");
+ CommandExecutor.ExecuteCommandAndOutput($"dotnet-exec {script} --dry-run").EnsureSuccessExitCode();
+ Console.WriteLine($"Compile script {script} test pass");
9
}
0 commit comments