winformsvisual-studiof#text-editorvisual-studio-project

how to create a f# windows application (no cmd window) without visual studio


Is it possible to create a Winforms Application in F#, where no CMD Window will be opened, without using Visual Studio?

I know that I could simply create a VS Project and set the 'Output type' to 'Windows Application'. But I really like the approach of simply firing up any kind of text editor and start hacking away.


Solution

  • Just use --target:WinExe in compiler options
    fsc source.fsx --target:WinExe