From 61aa305c4e0bca405cd8dcfdc027d73f2783189f Mon Sep 17 00:00:00 2001 From: jooseppi12 Date: Fri, 13 Jan 2023 13:06:42 +0100 Subject: [PATCH] #1314, Ensure Prepare build step happens prior WS-Restore --- build.fsx | 3 ++- src/compiler/WebSharper.Core/Macros.fs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.fsx b/build.fsx index 4d45570d..08c066ad 100644 --- a/build.fsx +++ b/build.fsx @@ -265,7 +265,8 @@ Target.create "RunMainTestsRelease" <| fun _ -> "RunMainTestsRelease" ==> "CI-Release" - + +"Prepare" ==> "WS-Restore" "WS-Stop" ==> "WS-Clean" "WS-Stop" ==> "WS-Restore" diff --git a/src/compiler/WebSharper.Core/Macros.fs b/src/compiler/WebSharper.Core/Macros.fs index 1fdfa75d..cf664eba 100644 --- a/src/compiler/WebSharper.Core/Macros.fs +++ b/src/compiler/WebSharper.Core/Macros.fs @@ -245,7 +245,7 @@ let tryFindMethodFromComparison (cI: Metadata.IClassInfo option) (t: Type) (cmp: Hashed mi match cI with | Some cI -> - let defMethod = additionalMethods cmp |> methodInfoFromStr + let defMethod = defMethods cmp |> methodInfoFromStr match cI.Methods.TryGetValue(defMethod) with | true, mem -> Some defMethod | false, _ ->