Skip to content
| Marketplace
Sign in
Visual Studio>Templates>F# Windows Console App
F# Windows Console App

F# Windows Console App

Carl Nolan

|
7,000 installs
| (0) | Free
F# Windows Console Application
Download

If you are like me and often use console applications for a variety of purposes you would have found the F# template not much use (in fact a blank code file). As such I decided to put together a more complete Project Template that I could use.

The Project Template creates a Windows Console Application with the following components:

  • Program.fs: The application entry point defined
  • Arguments.fs: A simple command line parser placing all arguments into a dictionary
  • MyConsole.fs: A separate module for the custom console application code

The custom console application handles the argument parsing, in addition to providing a TODO for the custom code.

If one does not wish to use the argument parsing module the ArgInfo list can be removed. This list provides a simple means for ensuring that the start-up
arguments are as expected. The returned parsed parameters is merely a Dictionary of the found arguments.

If one so desires one could map this over to the argument parsing provided by the FSharp PowerPack.

The generated code can be viewed in this blog posting:

http://blogs.msdn.com/b/carlnol/archive/2011/07/18/f-project-and-item-templates.aspx

http://blogs.msdn.com/b/carlnol/archive/2011/07/29/f-console-application-template.aspx

The current release is version 1.0.1

Minor version update makes arguments case sensitive.

    • Contact us
    • Jobs
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    © 2025 Microsoft