1 00:00:00,780 --> 00:00:01,650 ‫Welcome back. 2 00:00:01,680 --> 00:00:07,410 ‫In this video, I would like to show you the difference between the project template for dot net five 3 00:00:07,410 --> 00:00:09,300 ‫and dot net six. 4 00:00:09,300 --> 00:00:13,830 ‫So let's go ahead and just quickly create two projects to see the difference. 5 00:00:13,830 --> 00:00:19,590 ‫And then in the next video, we're going to build our first Hello World Program and you will understand 6 00:00:19,590 --> 00:00:25,890 ‫how this works using dot net five because at this point the course is still fully built in dot net five, 7 00:00:25,890 --> 00:00:29,700 ‫but I am going to update it with dot net six soon. 8 00:00:29,820 --> 00:00:35,760 ‫So don't worry at this point because for you as a beginner, it doesn't really matter at all because 9 00:00:35,760 --> 00:00:37,350 ‫there are no changes in the code. 10 00:00:37,350 --> 00:00:42,600 ‫Even the user interface of Visual Studio 2022 is the same as it was in 2019. 11 00:00:42,600 --> 00:00:47,760 ‫There is only this minor detail that is different for you as a beginner, and that's what I want to 12 00:00:47,760 --> 00:00:49,020 ‫show you in this video. 13 00:00:49,050 --> 00:00:51,330 ‫Okay, let's go ahead and create a new project. 14 00:00:51,330 --> 00:00:54,840 ‫And here you can see that you can select different templates. 15 00:00:54,840 --> 00:00:57,510 ‫There are a bunch of them you can see like plenty. 16 00:00:57,510 --> 00:01:04,950 ‫And these are available based on the workloads that we have selected when installing Visual Studio, 17 00:01:04,980 --> 00:01:07,830 ‫if you recall in the Visual Studio installer. 18 00:01:07,830 --> 00:01:16,590 ‫So in here we had those different workloads here and depending on which workloads you installed, you 19 00:01:16,590 --> 00:01:21,240 ‫will have more options here in Visual Studio as templates. 20 00:01:21,240 --> 00:01:24,390 ‫So I'm going to use the console app template with C-sharp. 21 00:01:24,390 --> 00:01:29,430 ‫So here it's important that you have the C-sharp logo here at the top or this letter, and I'm going 22 00:01:29,430 --> 00:01:31,710 ‫to call this one net five. 23 00:01:32,900 --> 00:01:35,950 ‫EPP All right, so this will be our dot net five app. 24 00:01:35,960 --> 00:01:37,640 ‫This will be the project name of the app. 25 00:01:37,640 --> 00:01:39,830 ‫And then you can change the location if you want to. 26 00:01:39,830 --> 00:01:45,620 ‫I'm going to leave it in the default location and I'm going to select the default solution name. 27 00:01:45,620 --> 00:01:52,070 ‫So now you can go to next and here you can see that you have dot net six as well as dot net five and 28 00:01:52,070 --> 00:01:59,720 ‫you only have dot net five if you have followed my instruction to also add dot net five runtime, which 29 00:01:59,720 --> 00:02:06,530 ‫is the one that has been used in 2021 and now in 2022 they have released dot net six. 30 00:02:06,530 --> 00:02:09,620 ‫In 2023 they are probably going to release dot net seven. 31 00:02:09,620 --> 00:02:15,110 ‫There are a bunch of changes under the hood which makes the show faster, which make applications run 32 00:02:15,110 --> 00:02:20,480 ‫smoother, which also add some new code and some new methodologies. 33 00:02:20,480 --> 00:02:26,180 ‫But it's not really relevant for you as a beginner because the basics, they always stay the same. 34 00:02:26,180 --> 00:02:31,820 ‫They will always be variables, methods, classes and so forth and all of these keywords. 35 00:02:31,820 --> 00:02:36,350 ‫They might not make any sense to you at this point, but we're going to go through all of them in this 36 00:02:36,350 --> 00:02:36,920 ‫course. 37 00:02:36,920 --> 00:02:40,310 ‫But what has changed that six is something you will see in a bit. 38 00:02:40,430 --> 00:02:40,760 ‫Okay. 39 00:02:40,790 --> 00:02:46,040 ‫So this was only available, this option here because I had installed this individual component. 40 00:02:46,040 --> 00:02:50,750 ‫So now let's just use dot net five and see how an application looks like. 41 00:02:50,750 --> 00:02:55,160 ‫Let's create this and see what Visual Studio does for us. 42 00:02:55,160 --> 00:02:56,030 ‫So there you are. 43 00:02:56,060 --> 00:02:57,650 ‫This is what we get by default. 44 00:02:57,680 --> 00:02:58,580 ‫A bunch of code. 45 00:02:58,580 --> 00:03:03,530 ‫There is a lot going on here without us having typed a single line of code. 46 00:03:03,650 --> 00:03:07,910 ‫And also this pop up appears where you're prompted to sign in, but you don't have to. 47 00:03:07,940 --> 00:03:09,260 ‫You can just close this. 48 00:03:09,500 --> 00:03:14,840 ‫So let me scroll in that you see the code a little better and I'm going to go through this in a lot 49 00:03:14,840 --> 00:03:16,340 ‫more depth in the next video. 50 00:03:16,340 --> 00:03:22,190 ‫But you can basically see that there are in total 12 lines of code in order to achieve this statement 51 00:03:22,190 --> 00:03:29,390 ‫of Hello World and we can run the application and it will just print something onto a console app. 52 00:03:29,390 --> 00:03:34,760 ‫So this is a console app that you see here and it says Hello World, but that's not really what this 53 00:03:34,760 --> 00:03:35,660 ‫video is about. 54 00:03:35,660 --> 00:03:43,130 ‫So let me start up another Visual Studio instance just to show you the difference between a dot net 55 00:03:43,130 --> 00:03:47,180 ‫five and a dot net six console application. 56 00:03:47,390 --> 00:03:51,770 ‫So here I'm going to call this one net six app. 57 00:03:53,950 --> 00:03:54,930 ‫Let's click next. 58 00:03:54,940 --> 00:04:01,390 ‫And here I'm going to select Dot Net six, which is the long term supported version of Dot Net. 59 00:04:01,390 --> 00:04:04,300 ‫And if you were wondering what that net is. 60 00:04:05,110 --> 00:04:07,630 ‫Then let me quickly go over to this article. 61 00:04:07,630 --> 00:04:10,360 ‫So you see here blog what is dot net platform overview? 62 00:04:10,360 --> 00:04:15,040 ‫Even though this overview is for that net five dot net six follows the same architecture. 63 00:04:15,040 --> 00:04:22,690 ‫So the idea is that they wanted to unify the development of all the different environments into one. 64 00:04:22,690 --> 00:04:28,750 ‫So now they put everything together cloud development, desktop, web, gaming, mobile, everything 65 00:04:28,750 --> 00:04:36,130 ‫is put together under the dot net hood and there is no dot net framework as well as dot net core separated. 66 00:04:36,130 --> 00:04:37,780 ‫It all comes together. 67 00:04:37,780 --> 00:04:43,720 ‫So it's basically just the entire framework or the package of a bunch of different pieces of code that 68 00:04:43,720 --> 00:04:49,210 ‫is put together so that we can write code very easily and build applications very quickly without having 69 00:04:49,210 --> 00:04:50,920 ‫to build everything from scratch. 70 00:04:50,950 --> 00:04:51,610 ‫All right. 71 00:04:51,760 --> 00:04:54,670 ‫So let's now use dot net six here. 72 00:04:54,670 --> 00:05:02,110 ‫Let's create a new console application and you will directly see a huge difference between the two and 73 00:05:02,110 --> 00:05:02,710 ‫there we are. 74 00:05:02,710 --> 00:05:06,820 ‫So this is what our dot net six application looks like. 75 00:05:06,820 --> 00:05:10,000 ‫So now you might be wondering, holy smokes, what is going on? 76 00:05:10,000 --> 00:05:11,200 ‫I don't see anything. 77 00:05:11,200 --> 00:05:14,050 ‫Well, except for this console right line. 78 00:05:14,140 --> 00:05:18,670 ‫The thing is that these two are basically the same. 79 00:05:18,670 --> 00:05:23,290 ‫So let me get rid of the solution explorer so you can see it better. 80 00:05:24,250 --> 00:05:27,490 ‫These are basically the same solution. 81 00:05:27,490 --> 00:05:29,410 ‫They result in the same thing. 82 00:05:29,410 --> 00:05:35,290 ‫So let me run this dot net six app and it will give me also this Helloworld statement. 83 00:05:36,130 --> 00:05:44,380 ‫So the only difference is that now inside of our programs, yes, we are by default, inside of this 84 00:05:44,380 --> 00:05:50,800 ‫main block, inside of this main method block, we're going to see what this main method means and so 85 00:05:50,800 --> 00:05:51,970 ‫forth later on. 86 00:05:51,970 --> 00:05:56,950 ‫But for now, just consider that what's happening here is just a different template. 87 00:05:56,950 --> 00:06:02,740 ‫And we're directly running this code here as if we were inside of these curly brackets. 88 00:06:02,740 --> 00:06:08,470 ‫And we don't need all of this overhead, even though for now we're going to use the dot net five framework 89 00:06:08,650 --> 00:06:09,490 ‫in the next video. 90 00:06:09,580 --> 00:06:12,910 ‫I'm going to show you how this works specifically. 91 00:06:13,120 --> 00:06:16,810 ‫But if you want to still use dot net six, you are fine to do. 92 00:06:16,810 --> 00:06:22,630 ‫So you can just check out this link by pressing the control key and clicking on it. 93 00:06:22,630 --> 00:06:26,500 ‫So the new shop templates generate top level statements. 94 00:06:26,500 --> 00:06:31,510 ‫So this was the traditional code as we've seen in our dot net five application. 95 00:06:31,510 --> 00:06:36,010 ‫And this is the new code as we've seen in the Note six application. 96 00:06:36,160 --> 00:06:36,580 ‫All right. 97 00:06:36,580 --> 00:06:38,980 ‫And that is basically the difference between the two. 98 00:06:38,980 --> 00:06:46,120 ‫So I would like to ask you to use dot net five when creating a new project in Visual Studio, and then 99 00:06:46,120 --> 00:06:51,100 ‫you can just follow along exactly as the course is designed at this point. 100 00:06:51,100 --> 00:06:57,520 ‫But as I said, I will update the course and add more exercises as well as additional examples and so 101 00:06:57,520 --> 00:07:00,430 ‫forth to keep this course up to date and improve it. 102 00:07:00,430 --> 00:07:01,990 ‫So don't worry about that. 103 00:07:02,260 --> 00:07:06,400 ‫So let's go ahead and check out Hello World in the next video.