First we'll install .NET, which provides access to the C# language. Follow along with instructions for your operating system below.
C# and .NET programming are fully supported on Mac operating systems. We can install .NET and C# on a Mac in a few steps:
Download this .NET 5 SDK (Software Development Kit). Clicking this link will prompt a
.pkg file download from Microsoft.
Open the file. This will launch an installer which will walk you through installation steps. Use the default settings the installer suggests.
Confirm the installation is successful. First, restart Terminal if it's already open, and then run the command
$ dotnet --version. You should see something like this in response:
This means both .NET and C# are successfully installed.
These Windows instructions assume you're using Windows 10. If you currently run Windows 7 or Windows 8, you may have a free upgrade available.
If you are not running Windows 10 (and cannot or do not plan to upgrade), specific installation steps may differ. However, your instructor will be available to assist with personal laptop configurations during the first week of the course.
Download the 64-bit .NET 5 SDK (Software Development Kit). Clicking these links will prompt a
.exe file download from Microsoft.
Open the file and follow the steps provided by the installer for your OS.
Confirm the installation is successful. First, restart GitBash if it's already open, and then run the command
dotnet --version. You should see something a response like this (version numbers do not need to be the same):
This means .NET and C# are installed and our computer recognizes the
In the next two lessons, we'll install dotnet script and MySQL.
Lesson 2 of 5
Last updated October 12, 2021