瀏覽代碼

Fix #5699: filter BuildAvaloniaApp by signature

Friedrich von Never 4 年之前
父節點
當前提交
4ba8c4ebb7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs

+ 1 - 1
src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs

@@ -169,7 +169,7 @@ namespace Avalonia.DesignerSupport.Remote
             if (entryPoint == null)
                 throw Die($"Assembly {args.AppPath} doesn't have an entry point");
             var builderMethod = entryPoint.DeclaringType.GetMethod(BuilderMethodName,
-                BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
+                BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, null, Array.Empty<Type>(), null);
             if (builderMethod == null)
                 throw Die($"{entryPoint.DeclaringType.FullName} doesn't have a method named {BuilderMethodName}");
             Design.IsDesignMode = true;