From a45b66424c9dd1064439f676420afe7a54e7c7df Mon Sep 17 00:00:00 2001 From: Donkey Date: Fri, 26 Jan 2024 12:56:10 +0100 Subject: [PATCH] feat: allow to download packages without an automation interface context (hacky solution for now) --- TwinpackShared/TwinpackUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwinpackShared/TwinpackUtils.cs b/TwinpackShared/TwinpackUtils.cs index 52dac17..533aac1 100644 --- a/TwinpackShared/TwinpackUtils.cs +++ b/TwinpackShared/TwinpackUtils.cs @@ -203,7 +203,7 @@ public static async Task> DownloadPackageVersion { // check if we find the package on the system bool referenceFound = false; - if (!forceDownload) + if (!forceDownload && libManager != null) { foreach (ITcPlcLibrary r in libManager.ScanLibraries()) {