To build your first .NET application with Visual Studio Code, set up your environment:
Download and install the .NET SDK:
Download and install VS Code:
Open VS Code and select the Extensions button in VS Code's Activity Bar to the left. Type C# in the search bar, select C# Dev Kit, and then select the Install button on the C# Dev Kit extension page.
Once you've set up your environment, open a new VS Code terminal. In the toolbar, select Terminal, then New Terminal.
In your terminal, run the following command to check your installation.
If the installation succeeded, you should see an output similar to the following:
Usage: dotnet [options] Usage: dotnet [path-to-application] Options: -h|--help Display help. --info Display .NET information. --list-sdks Display the installed SDKs. --list-runtimes Display the installed runtimes. path-to-application: The path to an application .dll file to execute.
If everything looks good, select the Continue button below to go to the next step.
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 quickly restarting your machine doesn't resolve the issue, use the I ran into an issue button to get help fixing the problem.