🔧Installing .NET
Last updated
Last updated
This guide will help you set up your development environment for .NET 8.0 and optionally, install Visual Studio, a powerful Integrated Development Environment (IDE) for .NET development. Follow these steps to get started with building .NET applications.
A computer running Windows, macOS, or Linux
Administrator privileges for installing software
Download the .NET 8.0 SDK:
Go to the .NET download page.
Under "Run apps - Runtime", select the latest .NET 8.0 SDK version suitable for your OS.
Click on the download link for the installer.
Run the Installer:
Open the downloaded installer.
Follow the on-screen instructions to complete the installation.
Verify Installation:
Open Command Prompt or PowerShell.
Run the following command to verify the installation:
You should see the installed version of .NET 8.0 SDK.
Download the .NET 8.0 SDK:
Go to the .NET download page.
Select the latest .NET 8.0 SDK version for macOS.
Install the SDK:
Open the downloaded .pkg
file.
Follow the on-screen instructions to complete the installation.
Verify Installation:
Open Terminal.
Run the following command:
You should see the installed version of .NET 8.0 SDK.
Add Microsoft Package Repository:
Open Terminal and run the following commands:
Install the SDK:
Update package lists and install the .NET 8.0 SDK:
Verify Installation:
Run the following command:
You should see the installed version of .NET 8.0 SDK.
Download Visual Studio Installer:
Go to the Visual Studio download page.
Click on "Free download" under "Visual Studio Community".
Run the Installer:
Open the downloaded installer.
Select the workloads you want to install. For .NET development, select ".NET desktop development" and/or "ASP.NET and web development".
Click "Install".
Launch Visual Studio:
After installation, launch Visual Studio.
Sign in with a Microsoft account (optional, but recommended for additional features).
Download Visual Studio for Mac:
Go to the Visual Studio for Mac download page.
Click on "Download Visual Studio for Mac".
Install Visual Studio:
Open the downloaded .dmg
file.
Drag the Visual Studio for Mac icon to the Applications folder.
Launch Visual Studio:
Open Visual Studio from the Applications folder.
Sign in with a Microsoft account (optional, but recommended for additional features).