I have downloaded the F# zipped distribution (i.e., without the installer) on Windows and I have a difficulty using ExcelDna with it.
When I copy the FSharp.Core.dll and the powerpack ones into the directory of the ExcelDna files (xxx.dna and xxx.xll), and use code into the dna file (see below), it doesn't work (although there is no error message).
<DnaLibrary Name="FSharp Sample" Language="F#">
<![CDATA[
namespace Foo
module Bar =
open ExcelDna.Integration
let sayhello () = "Hello from F#"
[<ExcelFunction(Category="FSharp Functions", Description="FSharp function to add numbers")>]
let add x y = x + y
let rec factorial = function
| x when (x > 1.0) -> (floor x) * factorial (x - 1.0)
| _ -> 1.0
]]>
</DnaLibrary>
However it does work with the dlls in the directory, and using a reference to an F#-compiled library, as in :
<DnaLibrary>
<ExternalLibrary Path="MyExcelDna.dll" />
</DnaLibrary>
Other languages (C# & VB) seem to work fine.
Has anyone used the ExcelDna tools with a zipped F# distribution ? Would anyone have any idea of what could be wrong ?
Many thanks for your help.