From 39b22acdef6e4017d801dbeb41b67b85f7bd2af2 Mon Sep 17 00:00:00 2001 From: Donkey Date: Fri, 26 Jan 2024 14:46:23 +0100 Subject: [PATCH] fix: twincat doesnt deal with relative paths --- TwinpackShared/TwinpackUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwinpackShared/TwinpackUtils.cs b/TwinpackShared/TwinpackUtils.cs index bc87f36..471bdac 100644 --- a/TwinpackShared/TwinpackUtils.cs +++ b/TwinpackShared/TwinpackUtils.cs @@ -244,7 +244,7 @@ public static void InstallPackageVersions(ITcPlcLibraryManager libManager, List< _logger.Info($"Installing package {packageVersion.Name} ..."); var suffix = packageVersion.Compiled == 1 ? "compiled-library" : "library"; - libManager.InstallLibrary("System", $@"{cachePath ?? DefaultLibraryCachePath}\{packageVersion.Target}\{packageVersion.Name}_{packageVersion.Version}.{suffix}", bOverwrite: true); + libManager.InstallLibrary("System", Path.GetFullPath($@"{cachePath ?? DefaultLibraryCachePath}\{packageVersion.Target}\{packageVersion.Name}_{packageVersion.Version}.{suffix}"), bOverwrite: true); } }