Browse Source

Fixed entry dll lookup

Krzysztof Krysiński 1 year ago
parent
commit
b3dfe2ab82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor.Extensions.Runtime/ExtensionLoader.cs

+ 1 - 1
src/PixiEditor.Extensions.Runtime/ExtensionLoader.cs

@@ -265,7 +265,7 @@ public class ExtensionLoader
             try
             {
                 var assembly = Assembly.LoadFrom(dll);
-                extensionType = assembly.GetTypes().FirstOrDefault(x => x.IsSubclassOf(typeof(Extension)));
+                extensionType = assembly.GetExportedTypes().FirstOrDefault(x => x.IsSubclassOf(typeof(Extension)));
                 if (extensionType is not null)
                 {
                     return assembly;