GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing dotnet.microsoft.com — F# Tutorial - Hello World in 5 minutes | .NET F# Tutorial - Hello World in 5 minutesIntroPurposeInstall .NET and create your first application written in the F# programming language. PrerequisitesNone. macOS 12.0 or later versions. Time to Complete5 minutes ScenarioA simple application written in F# that prints Download and installTo start building .NET apps, download and install the .NET SDK.
Download .NET 9 SDK x64 (Intel)
If you're on a Mac with an Apple M1 or M2 chip, you need to install the Arm64 version of the SDK. Check everything installed correctlyOnce you've installed, open a new command prompt and run the following command: Once you've installed, open a new terminal and run the following command: Command prompt If the installation succeeded, you should see version 9.0.100 or higher outputted: Command prompt If everything looks good, select the Continue button below to go to the next step. Got an error?If you receive a 'dotnet' is not recognized as an internal or external command error, make sure you opened a new command prompt. If quickly restarting your machine doesn't resolve the issue, use the I ran into an issue button to get help fixing the problem. Create your appIn your command prompt, run the following command to create your app: In your terminal, run the following command to create your app: Command prompt
Note: some terminals may require you to add quotes around Then, navigate to the new directory created by the previous command: Command prompt The The main file in the Program.fs Select the Continue button below to go to the next step. Got an error?If you receive a message similar to Template "Console Application" could not be created. Access to the path 'C:\Windows\System32\MyApp' is denied., change your current directory to one where you have permissions to create a new folder and try to run the command again. If Windows can't find the SDK when you try to create the project and you are sure you have installed the SDK, your machine might have an issue with the PATH environment variable. See this Stack Overflow post for instructions on how to diagnose and fix this issue. If you can't resolve the issue you're having, select the I ran into an issue button below to get help fixing the problem. Run your appIn your command prompt, run the following command: In your terminal, run the following command: Command prompt If your app ran successfully, you should see the following output: Command prompt Congratulations, you've built and run your first F# app! Select the Continue button below to go to the next step. Edit your codeOpen Program.fs Save the Command prompt If your app ran successfully, you should see an output similar to the following: Command prompt Next stepsNow that you've got the basics, let's dig deeper into the language, with a self-guided learning of F#. Microsoft Learn: Take your first steps with F# F# for BeginnersLet Luis walk you through the basics of the F# language and learn how to code in F#: You might also be interested in... |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |