From the course: Introduction to F#
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Project setup - F# Tutorial
From the course: Introduction to F#
Project setup
- [Instructor] Before we get into any F# syntax, let's create a blank project and see what it comes with. I'm going to open up Visual Studio here, and I'm going to select New and take a look at the templates. I'm going to be under Web and Console on the left-hand menu, I'm going to go to App, select Console Application, and make sure that F# is selected on the dropdown. Hit Continue. We'll leave this at target framework for .NET 7.0, which is fine. I'm going to name this Intro to F#, hit Create. When the project opens, you'll see a program.FS file with, well, nothing but a print log with a string. To run our code, let's go up to the main menu, we'll say Debug, Start Without Debugging. And this'll just print out Hello from F#, no problem. If this isn't already pinned, you can use this little pin icon on the right of the output menu, and that'll just keep this open as we go along. Now if you're coming from C# or…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.