Learn how to set up your environment for .NET core development using the Visual Studio or Visual Studio Code
Install the .NET Core SDK
Install with an installerWindows has standalone installers that can be used to install the .NET Core SDK. You can find the latest sdk installer here
Install with Visual StudioVisual Studio can install the latest .NET Core SDK and runtime. When installing or modifying Visual Studio, select one or more of the following workloads, depending on the kind of application you're building
- The .NET Core cross-platform development workload in the Other Toolsets section.
- The ASP.NET and web development workload in the Web & Cloud section.
- The Azure development workload in the Web & Cloud section.
- The .NET desktop development workload in the Desktop & Mobile section.
Install alongside Visual Studio CodeVisual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code is available for Windows, macOS, and Linux. While Visual Studio Code doesn't come with an automated .NET Core installer like Visual Studio does, adding .NET Core support is simple.
Verify the .NET Core setupYou can see which versions of the .NET Core SDK are currently installed with a terminal. Open a terminal and run the following command.
Or even you can run
dotnet --version in a console window to check the .NET core version in use.
Now you are ready to start .NET Core development.