‫Welcome back.
‫In this video, I would like to show you the difference between the project template for dot net five
‫and dot net six.
‫So let's go ahead and just quickly create two projects to see the difference.
‫And then in the next video, we're going to build our first Hello World Program and you will understand
‫how this works using dot net five because at this point the course is still fully built in dot net five,
‫but I am going to update it with dot net six soon.
‫So don't worry at this point because for you as a beginner, it doesn't really matter at all because
‫there are no changes in the code.
‫Even the user interface of Visual Studio 2022 is the same as it was in 2019.
‫There is only this minor detail that is different for you as a beginner, and that's what I want to
‫show you in this video.
‫Okay, let's go ahead and create a new project.
‫And here you can see that you can select different templates.
‫There are a bunch of them you can see like plenty.
‫And these are available based on the workloads that we have selected when installing Visual Studio,
‫if you recall in the Visual Studio installer.
‫So in here we had those different workloads here and depending on which workloads you installed, you
‫will have more options here in Visual Studio as templates.
‫So I'm going to use the console app template with C-sharp.
‫So here it's important that you have the C-sharp logo here at the top or this letter, and I'm going
‫to call this one net five.
‫EPP All right, so this will be our dot net five app.
‫This will be the project name of the app.
‫And then you can change the location if you want to.
‫I'm going to leave it in the default location and I'm going to select the default solution name.
‫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
‫you only have dot net five if you have followed my instruction to also add dot net five runtime, which
‫is the one that has been used in 2021 and now in 2022 they have released dot net six.
‫In 2023 they are probably going to release dot net seven.
‫There are a bunch of changes under the hood which makes the show faster, which make applications run
‫smoother, which also add some new code and some new methodologies.
‫But it's not really relevant for you as a beginner because the basics, they always stay the same.
‫They will always be variables, methods, classes and so forth and all of these keywords.
‫They might not make any sense to you at this point, but we're going to go through all of them in this
‫course.
‫But what has changed that six is something you will see in a bit.
‫Okay.
‫So this was only available, this option here because I had installed this individual component.
‫So now let's just use dot net five and see how an application looks like.
‫Let's create this and see what Visual Studio does for us.
‫So there you are.
‫This is what we get by default.
‫A bunch of code.
‫There is a lot going on here without us having typed a single line of code.
‫And also this pop up appears where you're prompted to sign in, but you don't have to.
‫You can just close this.
‫So let me scroll in that you see the code a little better and I'm going to go through this in a lot
‫more depth in the next video.
‫But you can basically see that there are in total 12 lines of code in order to achieve this statement
‫of Hello World and we can run the application and it will just print something onto a console app.
‫So this is a console app that you see here and it says Hello World, but that's not really what this
‫video is about.
‫So let me start up another Visual Studio instance just to show you the difference between a dot net
‫five and a dot net six console application.
‫So here I'm going to call this one net six app.
‫Let's click next.
‫And here I'm going to select Dot Net six, which is the long term supported version of Dot Net.
‫And if you were wondering what that net is.
‫Then let me quickly go over to this article.
‫So you see here blog what is dot net platform overview?
‫Even though this overview is for that net five dot net six follows the same architecture.
‫So the idea is that they wanted to unify the development of all the different environments into one.
‫So now they put everything together cloud development, desktop, web, gaming, mobile, everything
‫is put together under the dot net hood and there is no dot net framework as well as dot net core separated.
‫It all comes together.
‫So it's basically just the entire framework or the package of a bunch of different pieces of code that
‫is put together so that we can write code very easily and build applications very quickly without having
‫to build everything from scratch.
‫All right.
‫So let's now use dot net six here.
‫Let's create a new console application and you will directly see a huge difference between the two and
‫there we are.
‫So this is what our dot net six application looks like.
‫So now you might be wondering, holy smokes, what is going on?
‫I don't see anything.
‫Well, except for this console right line.
‫The thing is that these two are basically the same.
‫So let me get rid of the solution explorer so you can see it better.
‫These are basically the same solution.
‫They result in the same thing.
‫So let me run this dot net six app and it will give me also this Helloworld statement.
‫So the only difference is that now inside of our programs, yes, we are by default, inside of this
‫main block, inside of this main method block, we're going to see what this main method means and so
‫forth later on.
‫But for now, just consider that what's happening here is just a different template.
‫And we're directly running this code here as if we were inside of these curly brackets.
‫And we don't need all of this overhead, even though for now we're going to use the dot net five framework
‫in the next video.
‫I'm going to show you how this works specifically.
‫But if you want to still use dot net six, you are fine to do.
‫So you can just check out this link by pressing the control key and clicking on it.
‫So the new shop templates generate top level statements.
‫So this was the traditional code as we've seen in our dot net five application.
‫And this is the new code as we've seen in the Note six application.
‫All right.
‫And that is basically the difference between the two.
‫So I would like to ask you to use dot net five when creating a new project in Visual Studio, and then
‫you can just follow along exactly as the course is designed at this point.
‫But as I said, I will update the course and add more exercises as well as additional examples and so
‫forth to keep this course up to date and improve it.
‫So don't worry about that.
‫So let's go ahead and check out Hello World in the next video.