Exercise – Install the .NET SDK
The C# Dev Kit extension for Visual Studio Code helps you to install the .NET Software Development Kit (SDK). The .NET SDK is required to run and debug C# applications.
In this exercise, you install the .NET SDK on your computer.
Check to see if .NET is already installed
Use the following steps to complete this section of the exercise:
- Ensure that you have Visual Studio Code open.
- On the Terminal menu, select New Terminal.A command prompt, such as
C:\Users\AccountName>
, should be displayed. - At the command prompt, type:
dotnet --version
and then press the Enter key.This command displays the version number if .NET is installed on your PC. - Take a moment to view the response to your
dotnet --version
command.If you receive an error message telling you that the termdotnet
isn’t recognized, the .NET SDK isn’t installed.If a version of .NET is installed, you should see a response message listing the version number similar to the following:8.0.100
- Close the Terminal panel.