I am trying to follow the simplest example at the Excel-DNA.net front page to create a simplest UDF for Excel. My code builds correctly, except it builds into dll instead of xll. How do I build it into an xll file?
I literally follow the example from the page (copy pasting it here)
- Create a new Class Library (.NET Framework) project in Visual Basic, C# or F#.
- Use the Manage NuGet Packages dialog or the Package Manager Console to install the Excel-DNA package: PM> Install-Package ExcelDna.AddIn
- Add your code (C#, Visual Basic.NET or F#):
using ExcelDna.Integration;
public static class MyFunctions { [ExcelFunction(Description = "My first .NET function")] public static string SayHello(string name) { return "Hello " + name; } }
- Compile, load and use your function in Excel:
=SayHello("World!")
All is fine, except it builds into DLL...