From the course: Introducing .NET Core

What is a .NET Hello World app? - .NET Tutorial

From the course: Introducing .NET Core

What is a .NET Hello World app?

- Hey friends, let's talk about a Hello World App. Now we did a video on a Hello World App. - Yeah. - We did it from the perspective of C-Sharp. We looked at the namespace and the using commands and things like that. In fact, we did a whole video series and we ran the application, we hit Control + F5 to start without debugging. But we never really looked and found like the thing we made, did we? - Yeah we were really code focused and for me, it's not really concrete until I see where it exists on my computers' disc. So, let's take a look at project types. - So what we're looking at right here is exactly where we left off at the end of the C-Sharp video series. We were making a little banking application. It's a Console App. So it's not a Windows App that pops up and has buttons and things, it runs at the command line. And over here on the right hand side, we've got this Solution Explorer. Are those my files? Is that a representation of what's happening on the disc? - Right so what you see in the File Explorer isn't exactly what you see in the Solution Explorer. So here you have a bin folder and an object folder, you have .csproj files. None of that you see in the Solution Explorer 'cause that isn't exactly what you need right now in your coding. - Are they kind of hiding that from me because it's really not the point right now, the point is my code. - Right. - Okay. But we were building stuff, we were running stuff. We spent a whole bunch of videos learning C-Sharp. I was running my application by pressing Control + F5 or start without debugging or F5 to debug, but I never really saw the thing. Like where's my thing I made? - Right, so the output of your app is actually in the bin folder. Why don't you double-click on that. - Okay, bin. - And in debug. - Debug. - And in NET Core App 3.0. So, now we can see that .exe which is the output application of what we built. - Okay so that's the stuff I made MySuperBank.exe and MySuperBank.dll. And then there's some other kind of peripheral stuff that came along for the ride. - Right. - Can I run that? - Yeah. - Okay. So if I run that, well that wasn't exciting it just kind of let me try that again maybe I did it wrong. It just came and went. - No, you didn't do it wrong. So that's basically what Console Apps look like if we don't add like a Console.ReadLiner it doesn't wait for feedback. Why don't we run that from the Command Prompt. - Okay so I'll go out to my Command Prompt I'm using the Windows terminal. And you'll notice that I'm in the same folder, right? I'm in the exact same folder. And I can compare these two folders. I actually right-clicked here in Explore and I said, copy. And then I came down to the command line and I said cd, and I pasted it in. That's how I got here. And if I type dir, that's the same stuff right? - Yeah. - So you said I can run that. So MySuperBank, I'm going to hit tab remember tabs are a friend and Visual Studio and it's our friend at the command line. So I hit enter. That's what I was seeing yesterday. - Right. - When we were doing C-Sharp videos, okay. So that's the app that we wrote yesterday, which is great. So the SuperBank exe and the stuff around it is my app. Can I just take that and give that to my family and they can run it too? - Yeah. If they're running it on the same operating system, if you want to publish it out to different operating systems you can run different commands, but we'll cover that in a different video. - Yeahp we're going to go through publishing and the difference between running on Windows or running on Mac, running on Buncho a little bit later. And the idea of a .NET Runtime and how that runtime is needed. And all those things in the publishing video but that's a Hello World. Like that's the anatomy of a .NET Hello World Application using Visual Studio 2019. Stick with us for more .NET Core videos, coming up next.

Contents