Infer.NET user guide : Fun

Getting started with Fun

The Fun related documents of this Infer.NET installation consist of:

  • A folder, Bin, containing the Infer.NET compiler, runtime, and Fun dlls.
  • A folder, Samples\Fun, containing a series of example F# projects and scripts.
  • A folder, Documentation\Fun Interfaces, containing fsi files for the Fun APIs.

To run the QuickStart.fsx script:

  1. Open the Samples\Fun\Examples2010.sln file with Visual Studio 2010.
  2. Open QuickStart.fsx in the 1 QuickStart Scripts folder.
  3. Type Ctrl-Alt-F to start F# interactive.
  4. Reselect the QuickStart.fsx buffer, and type Ctrl-A to select the whole buffer.
  5. Type Alt-Enter to send the buffer to F# interactive for execution.

To run the simplest Fun project:

  1. Open the Samples\Fun\Examples2010.sln file with Visual Studio 2010.
  2. Right click the Coins project, and select "Set as startup project".
  3. Click Control-F5 to run the startup project, which records its output in the command line.
  4. You can read and modify the code of the example in Coins.fs in the Coins project.
  5. You can read about the example (and some of the others) in the tutorial section (two coins tutorial)

Enjoy!

 
©2009-2013 Microsoft Corporation. All rights reserved.  Terms of Use | Trademarks | Privacy Statement