Hello! In this video will go step by step by the process of installing Visual Studio Community 2022. 1
If you already have Visual Studio at this version or any other IDE that supports .NET 6 development, 2
feel free to skip this video. 3
In this course, we use .NET 6 and C# 10. 4
So in case something doesn't work for you, please make sure your IDE supports them. 5
Visual Studio Community is a free development environment, which you can use to create and run 6
C# code. 7
Please note that the installation process might be slightly different if you are not on Windows. 8
You will find more information about that in the document attached to this video. 9
Let's start by simply typing "Visual Studio Community" in the browser. 10
Let's select the first result, which should lead us straight to the Visual Studio page in Microsoft's 11
domain. 12
Now let's click on this button. 13
This pop up is about the privacy settings, so I'm just going to click Continue. 14
Here we have a couple of options, depending on what kind of applications we want to build. In our case, 15
selecting ".NET desktop development" is enough. 16
We can now click the Install button. 17
This process might take a while, so consider making a cup of coffee. 18
When the installation process finishes, two things may happen. 19
First, you might be asked to restart your machine, which you should do. After restarting, simply run 20
Visual Studio 2022 from the Start Menu. 21
And second, you might be asked to log in to your Microsoft account. 22
As we said before, Visual Studio Community is a free tool, but you are still asked to create a free 23
Microsoft account if you intend to use it 24
beyond the trial period. 25
All right, let's make sure everything works. 26
I'm going to create a new project by simply clicking here. In this window 27
we must select a project template. 28
For now, let's just select the Console Application, making sure we selected C#, not Visual Basic 29
or F#. 30
We can now click Next. 31
For now, we'll just create a sample project, 32
so the name doesn't matter. 33
We can click Next. 34
In this window, we select the version of .NET. 35
I'm going to keep .NET 6. Starting with this version 36
C# 10 is supported. 37
We can now click Create. 38
And here is our solution and the program file. 39
If you haven't used Visual Studio 2022 before, you may be a bit surprised. 40
There is no Program class here, nor the Main method. 41
This is how this file looked like in older versions of Visual Studio. 42
Well, don't worry about that. 43
It's just an improvement 44
of C# 10 that reduces the amount of code to need to write. Whatever 45
we write here will be put inside the Main method during the compilation. 46
Let's make sure we can run this program by simply clicking here. 47
All right. 48
Seems everything is working. 49
Thanks for watching this video and I'll see you in the next one.