I was checking IronPython in order to evaluate if I can replace C# in some projects then I stumble upon F# on my way.
Got two small newbie questions ( complexity level == “Hello world” )
I’ve got a simple F# file here:
[<EntryPoint>] let main argv = printfn "Hi there" 0
But I can’t find a simple way to compile it without using IDE’s or fsproj files (which I don’t want to).
I’ve googled about this but I can only find answers using IDE’s or project files.
Anyone could explain how to compile a simple F# file down to an exe and how to compile to a dll (if possible with F#)
Also, I’d like to know if it’s possible to use F# inline in an aspx file ?
Here’s a simple C# aspx file, how can I replace the C# language to F# ? Do I need extra web handlers to install ?
<%@ Page language="C#" Debug="true" validateRequest="false" responseEncoding="utf-8"%> <% HttpContext.Current.Response.Write("Hi there"); %>
If it’s not possible to use F# inline in aspx files, can I compile it down to a dll and call some code from the C# aspx page ?
Thanks in advance for you answers !