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 — .NET Tutorial - Hello World in 5 minutes | .NET .NET Tutorial - Hello World in 5 minutesIntroPurposeInstall .NET, Visual Studio Code, and create your first application. Prerequisites500 MB of available hard-drive space.
Time to complete5 minutes + download/installation time ScenarioA simple application written in C# that prints Download and installTo build your first .NET application, you'll need to install the .NET SDK, Visual Studio Code, and C# Dev Kit. What are the .NET SDK, Visual Studio Code, and C# Dev Kit?
The .NET WinGet Configuration file will install the .NET 10 SDK, VS Code, and C# Dev Kit for you. If you already have something installed, WinGet will skip that installation step. To build your first .NET application with Visual Studio Code, set up your environment:
Download and run the configuration fileClick the following link to download the WinGet file: Open your downloads folder and double-click on the file to begin installation. If you're asked to select an application to run the file, select Windows Package Manager Client. A terminal will open and you should see that the WinGet Configuration file is ready to install the .NET 10 SDK, VS Code if you do not have it, and C# Dev Kit. Read the license agreement and agree to it by typing "y" in the terminal and pressing Enter. Note: You are responsible for understanding the configuration settings you are choosing to execute. Microsoft is not responsible for the configuration file you have authored or imported. This configuration may change settings in Windows, install software, change software settings (including security settings), and accept user agreements to third-party packages and services on your behalf. By running this configuration file, you acknowledge that you understand and agree to these resources and settings. Any applications installed are licensed to you by their owners. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages or services. WinGet is now installing everything you need to get started! Install time will depend on your machine specifications, network speed, and more. It can take as little as 5 minutes but up to 15 minutes to complete. Some install steps may require administrator-level permissions to install. Be on the lookout for flashing User Account Control (UAC) prompts in your Windows Taskbar and click on that icon. To continue installation, you must select Yes if prompted. When the installation is complete, you should see the output below in the terminal. Check everything installed correctlyNow that your environment is set up, go to the Search in your Windows Taskbar, and type Visual Studio Code. Click the application to open VS Code. Once you've set up your environment, open a new VS Code terminal. In the toolbar, select Terminal, then New Terminal. Note: If you open VS Code through a terminal, you'll need to enable Workspace Trust. Now open a new terminal by going to the toolbar and selecting Terminal, then New Terminal. In your terminal, run the following command to check your installation. Terminal If the installation succeeded, you should see an output similar to the following: Terminal 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 VS Code terminal. If restarting VS Code or restarting your machine doesn't resolve the issue, use the I ran into an issue button to get help fixing the problem. Create your app
If asked, enable Workspace Trust by checking the box and selecting Yes, I trust the authors. Note: While sign in isn't required or enforced by the extension, you might need to sign in using your Visual Studio account to comply with the EULA requirements for the C# Dev Kit extension. In the VS Code Side Bar, make sure the Explorer is open. Click on the The main file in the Select the Continue button below to go to the next step. Got an error?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 appTo run your application, select the dropdown menu to the right of the run button in the top right, and select Run project associated with this file. You should see Terminal Congratulations, you've built and run your first .NET app! Select the Continue button below to go to the next step. Edit your codeIn the Program.cs Save the Terminal Next stepsCongratulations, you've built and run your first .NET app! Keep learningTo keep learning general .NET skills, try our tutorials on Microsoft Learn where you'll learn about .NET, dependencies, working with files, debugging, and more: Build .NET applications learning path Learn C#C# is .NET's modern, innovative, open-source programming language for building all your apps. Get started by trying our C# interactive tutorials on Microsoft Learn: Take your first steps with C# on Microsoft Learn .NET for BeginnersLet Claudia walk you through the basics of .NET with her beginner video series: 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. |