From c64bca541f274445e387ceb505fd6055bc1965e0 Mon Sep 17 00:00:00 2001 From: stidsborg Date: Sat, 27 Apr 2024 09:05:58 +0200 Subject: [PATCH] Ignore Cleipnir.ResilientFunctions git-submodule in cli --- Cleipnir.Flows.Cli/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cleipnir.Flows.Cli/Program.cs b/Cleipnir.Flows.Cli/Program.cs index acf2413..8e71d9f 100644 --- a/Cleipnir.Flows.Cli/Program.cs +++ b/Cleipnir.Flows.Cli/Program.cs @@ -55,7 +55,9 @@ private static int Main(string[] args) private static IEnumerable FindAllProjects(string path) { var currPathProjects = Directory.GetFiles(path, "*.csproj"); - var subFolders = Directory.GetDirectories(path); + var subFolders = Directory + .GetDirectories(path) + .Where(d => !d.Contains("Cleipnir.ResilientFunctions")); return currPathProjects.Concat(subFolders.SelectMany(FindAllProjects)).ToList(); }