Skip to content

Commit

Permalink
Update ExtensionLoader.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed May 17, 2024
1 parent 5bdefb2 commit 907d014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DynamoCore/Extensions/ExtensionLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public IExtension Load(string extensionPath)
if (item.Name == "AssemblyPath")
{
// Usually the extension configs are written on a Windows system, so we only need to make them compatible with linux
path = Path.Combine(path, item.InnerText.Replace('\\', Path.DirectorySeparatorChar));
string assemblyRelativePath = OSHelper.IsWindows() ? item.InnerText : item.InnerText.Replace('\\', Path.DirectorySeparatorChar);
path = Path.Combine(path, assemblyRelativePath);
definition.AssemblyPath = path;
}
else if (item.Name == "TypeName")
Expand Down

0 comments on commit 907d014

Please sign in to comment.