Lesson 2. Creating your first F# program
Now that you’ve installed Visual Studio and have the F# tools installed in it, what can you do with it? By the end of this lesson, you’ll see how and where F# integrates with Visual Studio. This lesson covers the following:
- Creating an F# console application in Visual Studio
- Working with F# syntax
- Understanding F#’s “less is more” approach
You can create projects in a solution, just as you’d do in C#, in exactly the same way. F# has support out of the box for several project templates, the most important of which are the following:
- Library—A Visual Studio project that compiles into a .NET assembly ending with .dll and can be referenced by other .NET projects and assemblies. You can think of this as equivalent to the Class Library project that you’ll be familiar with from C#.
- Console Application—A Visual Studio project that compiles into a .NET assembly ending with .exe and is capable of being run. This can also be referenced by other .NET projects and assemblies.
Sounds familiar, right?