From 84ff2fd695d0b5e71a919fee82069f4024472894 Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Sun, 27 Oct 2024 06:22:21 +0100 Subject: [PATCH] Tests copying logic attempt 4 --- Runner/Helpers/RuntimeHelpers.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Runner/Helpers/RuntimeHelpers.cs b/Runner/Helpers/RuntimeHelpers.cs index b09b14d..8cff5b9 100644 --- a/Runner/Helpers/RuntimeHelpers.cs +++ b/Runner/Helpers/RuntimeHelpers.cs @@ -170,9 +170,10 @@ public static async Task CopyReleaseTestAssembliesAsync(JobBase job, string bran .Where(dir => Path.GetFileName(dir).StartsWith("net", StringComparison.OrdinalIgnoreCase)) .Single(); - string dllPath = Path.Combine(folder, $"{name}.dll"); - - File.Copy(dllPath, Path.Combine(destination, $"{name}.dll")); + foreach (string dll in Directory.GetFiles(folder, "*.dll")) + { + File.Copy(dll, Path.Combine(destination, Path.GetFileName(dll))); + } } }); }