KB Controls is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Read more in our disclaimer
C# From Scratch Part 1.1. In this part, we learn how to install .NET on your machine.
Welcome to another edition of C# From Scratch, a course dedicated to teaching you everything you need to know to be productive with C#. If you’re new here, head over to the index to see all parts of the series.
In the last part of the series, we learned that .NET is the runtime that runs our C# applications on our machine.
This means that to test your C# applications and to follow along with this course, you will need to have .NET installed on your machine. To get .NET installed on your machine, you will need to download and install the .NET SDK on your machine.
An SDK, or Software Development Kit, is a set of tools that help you to develop software easily. In this case, the .NET SDK contains both the .NET Runtime and tools that make it easy to interact with the runtime, which we will explore in the next part of the series.
To download the .NET SDK, head over to the .NET downloads page here. On this page, download the latest version of .NET. At the time of writing, that is .NET 5.0.
You should notice that there are links to download .NET for various platforms including Windows, Linux, macOS, and Docker. Download the correct SDK installer for your machine and install it.
When the installation is complete, dismiss the installer.
By the time you read this, there may be a new version of .NET released. My advice is that you download the latest version of .NET that is available.
All of the code that we write in this course will work with future versions of .NET so you shouldn’t have any issues following along even if you are using a newer version of .NET.
In this part of the series, we installed the .NET SDK on our machines. This SDK contains the .NET Runtime and some tools that help us to interact with .NET.
In the next part of the series, we will learn how to use these tools to create and run our first C# .NET application.
In this post, we learn how to debug a C# .NET Console application using the Console messages and Visual Studio Code's debugger. We also learn how to use conditional statements to avoid exceptional situations.
In this part of the series, we learn how to add interactivity to our application. Along the way, we will learn about methods, arrays, and string manipulation in C#.