I have been happily implementing my UDFs, but suddenly on running in Excel the ExcelDnaLoader is blowing up at registration time. I have put breakpoints on all my UDFs to see if they're getting called (for some reason) but the breakpoints are never hit.
member this.AutoOpen () =
// The overload selection and delegate conversions performed by F# are not intuitive.
let paramConvertConfig =
ParameterConversionConfiguration()
.AddParameterConversion(
Func<Type, ExcelParameterRegistration, LambdaExpression>
(FsParameterConversions.FsOptionalParameterConversion),
null)
ExcelRegistration.GetExcelFunctions ()
|> fun fns -> ParameterConversionRegistration.ProcessParameterConversions (fns, paramConvertConfig)
|> FsAsyncRegistration.ProcessFsAsyncRegistrations
|> AsyncRegistration.ProcessAsyncRegistrations
|> MapArrayFunctionRegistration.ProcessMapArrayFunctions
|> ParamsRegistration.ProcessParamsRegistrations
|> ExcelRegistration.RegisterFunctions
Specifically, it's blowing up at the last line, ExcelRegistration.RegisterFunctions.
What can I do to troubleshoot this? This new behavior was unexpected.