0 1 00:00:04,720 --> 00:00:13,000 Hello! In this video will go step by step by the process of installing Visual Studio Community 2022. 1 2 00:00:13,660 --> 00:00:20,350 If you already have Visual Studio at this version or any other IDE that supports .NET 6 development, 2 3 00:00:20,470 --> 00:00:22,510 feel free to skip this video. 3 4 00:00:22,930 --> 00:00:26,470 In this course, we use .NET 6 and C# 10. 4 5 00:00:26,650 --> 00:00:31,750 So in case something doesn't work for you, please make sure your IDE supports them. 5 6 00:00:32,560 --> 00:00:38,880 Visual Studio Community is a free development environment, which you can use to create and run 6 7 00:00:38,890 --> 00:00:39,700 C# code. 7 8 00:00:40,330 --> 00:00:45,610 Please note that the installation process might be slightly different if you are not on Windows. 8 9 00:00:46,030 --> 00:00:51,010 You will find more information about that in the document attached to this video. 9 10 00:00:51,670 --> 00:00:55,890 Let's start by simply typing "Visual Studio Community" in the browser. 10 11 00:00:59,480 --> 00:01:05,360 Let's select the first result, which should lead us straight to the Visual Studio page in Microsoft's 11 12 00:01:05,360 --> 00:01:05,870 domain. 12 13 00:01:06,410 --> 00:01:08,270 Now let's click on this button. 13 14 00:01:14,370 --> 00:01:19,260 This pop up is about the privacy settings, so I'm just going to click Continue. 14 15 00:01:22,310 --> 00:01:29,620 Here we have a couple of options, depending on what kind of applications we want to build. In our case, 15 16 00:01:29,630 --> 00:01:32,810 selecting ".NET desktop development" is enough. 16 17 00:01:34,530 --> 00:01:36,780 We can now click the Install button. 17 18 00:01:38,820 --> 00:01:43,080 This process might take a while, so consider making a cup of coffee. 18 19 00:01:49,490 --> 00:01:53,210 When the installation process finishes, two things may happen. 19 20 00:01:53,660 --> 00:02:00,440 First, you might be asked to restart your machine, which you should do. After restarting, simply run 20 21 00:02:00,440 --> 00:02:03,380 Visual Studio 2022 from the Start Menu. 21 22 00:02:03,950 --> 00:02:08,210 And second, you might be asked to log in to your Microsoft account. 22 23 00:02:08,600 --> 00:02:15,350 As we said before, Visual Studio Community is a free tool, but you are still asked to create a free 23 24 00:02:15,350 --> 00:02:18,080 Microsoft account if you intend to use it 24 25 00:02:18,200 --> 00:02:19,880 beyond the trial period. 25 26 00:02:20,720 --> 00:02:23,600 All right, let's make sure everything works. 26 27 00:02:24,020 --> 00:02:30,240 I'm going to create a new project by simply clicking here. In this window 27 28 00:02:30,290 --> 00:02:32,540 we must select a project template. 28 29 00:02:32,900 --> 00:02:39,470 For now, let's just select the Console Application, making sure we selected C#, not Visual Basic 29 30 00:02:39,470 --> 00:02:40,970 or F#. 30 31 00:02:42,800 --> 00:02:44,420 We can now click Next. 31 32 00:02:45,980 --> 00:02:48,590 For now, we'll just create a sample project, 32 33 00:02:48,680 --> 00:02:50,330 so the name doesn't matter. 33 34 00:02:50,720 --> 00:02:51,800 We can click Next. 34 35 00:02:53,720 --> 00:02:56,810 In this window, we select the version of .NET. 35 36 00:02:57,470 --> 00:03:01,280 I'm going to keep .NET 6. Starting with this version 36 37 00:03:01,610 --> 00:03:03,200 C# 10 is supported. 37 38 00:03:03,710 --> 00:03:05,240 We can now click Create. 38 39 00:03:08,400 --> 00:03:11,550 And here is our solution and the program file. 39 40 00:03:12,210 --> 00:03:17,640 If you haven't used Visual Studio 2022 before, you may be a bit surprised. 40 41 00:03:18,150 --> 00:03:21,690 There is no Program class here, nor the Main method. 41 42 00:03:22,350 --> 00:03:26,610 This is how this file looked like in older versions of Visual Studio. 42 43 00:03:27,300 --> 00:03:29,130 Well, don't worry about that. 43 44 00:03:29,430 --> 00:03:30,680 It's just an improvement 44 45 00:03:30,690 --> 00:03:36,180 of C# 10 that reduces the amount of code to need to write. Whatever 45 46 00:03:36,180 --> 00:03:40,920 we write here will be put inside the Main method during the compilation. 46 47 00:03:41,520 --> 00:03:45,030 Let's make sure we can run this program by simply clicking here. 47 48 00:03:49,640 --> 00:03:50,360 All right. 48 49 00:03:50,630 --> 00:03:52,250 Seems everything is working. 49 50 00:03:52,730 --> 00:03:56,330 Thanks for watching this video and I'll see you in the next one.