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