Skip to content

Instantly share code, notes, and snippets.

@MattMS MattMS/MinimumWinForms.fs
Last active Jul 24, 2019

Embed
What would you like to do?
Minimum required for a WinForms application in F# in .NET Framework 4.7
@echo off
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\fsc.exe" %*
open System
open System.Windows.Forms
[<STAThread>]
do
Application.EnableVisualStyles()
Application.Run(new Form())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.