From the course: Advanced C#: Language Features
Setting up the environment - C# Tutorial
From the course: Advanced C#: Language Features
Setting up the environment
- [Instructor] To complete the exercises in this course, you're going to need to make sure that your development environment is set up to work with .NET. The examples in this course are built using .NET Six, so you'll need to either have .NET Six on your machine or you can use the source files to create projects for whatever version of .NET you're using. They should work as far back as .NET Five, but if you've got .NET Six on your machine, that's ideal. So let's start by opening the terminal program on your computer. And then, let's go ahead and type in dotnet, and then dash dash version. And you can see here on my computer that I've got version six already installed. Now if running this command gives you an error or you have a version earlier than six, you need to install the .NET SDK. So let's go ahead and switch over to the browser and you can download .NET Six from this link on the Microsoft website. The page should automatically select the right version for your operating system, but you can manually change it if you need to. So if you're downloading for the Mac, you click on Mac. Windows is over here and the other operating systems are here. So when you install this, make sure that you install the SDK version of .NET. You don't want just the runtime. Since we're going to be building applications, we actually need the SDK for this. So follow the instructions for your operating system and install the SDK and then go back to the terminal and run that command again to make sure that it was installed correctly. Now I mentioned earlier that I'm going to be using Visual Studio Code for this course and you can find that at, if we go to code.visualstudio.com, this is where you can download Visual Studio Code. Now technically, you can use any editor you want because we're going to be running things from the command line, so I recommend Visual Studio Code because it's free. It runs on pretty much every operating system that there is and it's a great editor. If you've already got Visual Studio Proper, you can use that too, but if you're using an editor like Adam, for example, that should also work. It doesn't really matter. I suggest using Visual Studio Code because it's a great editor. It comes from Microsoft. It's got lots of great features for working with .NET code, so that's what I recommend people to use. So once you have .NET Six and Visual Studio Code on your computer or whatever editor you're using, make sure that you install the example files for this course, which you can find in the dedicated GitHub repository at this link, just in that popup right there. Go to that link and download or clone that repository on your computer to wherever you want and you are ready to get started.