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:
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 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. |