I have created a Nuget.org package, with the following (abridged) code:
namespace MyNugetPackageNS module MyNugetModule = open ExcelDna.Integration // this function is NOT seen in the package user's Excel session [<ExcelFunction(Category="Test", Description="Add 1.")>] let plusOne ([<ExcelArgument(Description= "Value.")>] value: double) : obj = value + 1.0 |> box
I was hoping that if a user installs the package and adds it into his own library, all the Excel functions defined in the package (e.g. plusOne) would automatically be visible within Excel, but it isn't the case. It seems that the user has to "wrap" the package Excel functions in order to make them visible in Excel, e.g. :
namespace UserNS module UserModule = // need to install the nuget package from Nuget.org open MyNugetPackageNS.MyNugetModule open ExcelDna.Integration // this function is seen in the package user's Excel session [<ExcelFunction(Category="Test", Description="Add 1.")>] let plusOne2 ([<ExcelArgument(Description= "Value.")>] value: double) : obj = MyNugetModule.plusOne value
My question : Is there a way to make the package's Excel functions automatically "visible" in the package user's Excel session, without wrapping each function before hand?