From fb1bd1c0176209bba79eee4f16cf0737b4a4ef40 Mon Sep 17 00:00:00 2001 From: Ronit Jain Date: Wed, 1 Jun 2022 23:44:42 +0530 Subject: [PATCH] copy project references dlls' --- lean/components/docker/lean_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lean/components/docker/lean_runner.py b/lean/components/docker/lean_runner.py index 05a7d615..5da89a1e 100644 --- a/lean/components/docker/lean_runner.py +++ b/lean/components/docker/lean_runner.py @@ -483,8 +483,9 @@ def set_up_csharp_options(self, project_dir: Path, run_options: Dict[str, Any], run_options["commands"].append(f'dotnet build "/LeanCLI/{relative_project_file}" "-p:{msbuild_properties}"') # Copy over the algorithm DLL - run_options["commands"].append( - f'cp "/Compile/bin/{project_file.stem}.dll" "/Lean/Launcher/bin/Debug/{project_file.stem}.dll"') + # Copy over the project reference DLLs' + # Copy over all output DLLs that don't already exist in /Lean/Launcher/bin/Debug + run_options["commands"].append("cp -R -n /Compile/bin/. /Lean/Launcher/bin/Debug/") # Copy over all library DLLs that don't already exist in /Lean/Launcher/bin/Debug # CopyLocalLockFileAssemblies does not copy the OS-specific DLLs to the output directory