From 4ba8c4ebb76fc45e96a9bdb506edf6608590a4ad Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sun, 21 Mar 2021 19:03:13 +0700 Subject: [PATCH] Fix #5699: filter BuildAvaloniaApp by signature --- src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs b/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs index 764fc7b332..be2405efde 100644 --- a/src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs +++ b/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(), null); if (builderMethod == null) throw Die($"{entryPoint.DeclaringType.FullName} doesn't have a method named {BuilderMethodName}"); Design.IsDesignMode = true;