Intro to Console Apps in C# in .NET 6

preview_player
Показать описание
The Console application type is often overlooked, but it can be one of the most powerful project types in C#. In fact, if you are learning C#, this should be the first project type that you learn, and it should be one you stick with for your first fifty projects. In this video, we are going to look at what the console project type is, how to get started with it, and then when you would use this project type.

0:00 - Introduction "Console Application Type"
1:08 - Visual Studio demo, create and run a simple .net 6 console application
3:50 - New "Top level statements" in .NET 6
5:00 - Console window
5:35 - Console class
11:16 - Why Console app and when to use it.
12:00 - Easy to learn C# using console applications
15:42 - Quick applications (To implement something quickly)
16:30 - Automation
23:51 - Summary
26:41 - Discover C# project types
Рекомендации по теме
Комментарии
Автор

Most apps I write a console apps at heart. And they may just run pure console, or may become a service, or a web host. But always console at heart.

danielwilliams
Автор

Thank you for continuing to evangelize for the console application. So much power that is lost when a developer starts out at a higher level without knowing the foundations it all sits upon.
Supporting redirection from one into the next so you can create data flows from a command line. #nix variants thrive on the concept.

Norman_Fleming
Автор

Do you have any videos that describe how to implement interfaces, abstract classes, and references to other classes or projects like we use to be able to do before top level was introduced? Or do I need to rebuild my own namespaces and class declarations from scratch and carry on from there?

rafaelm.
Автор

Programmed in BASIC on the C64, Pascal on the Apple II, and assembly language on the Amiga console during the 80s, Lisp under MSDOS and C / C++ in the Linux console during the 90s, then Java console-only for almost 20 years, and programming in Python is console-first anyways. Did I ever do any non-console programming in C# yet? Now that I'm thinking about it, with your hint that web apps are technically console apps, actually no! Video was fun to watch, even if I wasn't the intended audience. :-)

michaelschneider
Автор

If you work in the world of Insurance, Banking, Finance, etc. you will find yourself working on console apps. Especially as a junior developer. Overnight, Weekly or Monthly processing are quite often done through a console application. You will need to know how to create, use and update real world console apps. They are not just for learning. You need to understand the difference between a tutorial application and a production application.

michaelday
Автор

Yes the Stigma with the console app is that it was for beginners only or marauders

Dazza_Doo
Автор

One great use case I found for console is a process I created where I have a custom nuget system where I have a text file that lists projects I want to use my custom system with. When I run the console app, it scans all of them and if there are any detected changes, then it creates a nuget package and even uploads to public nuget as well.

andywalter
Автор

Thanks in a million my brother again, Tim! Great content. Awesome. Very well explained. I couldn't find this content--simply put anywhere else. Grade: A++ 💥

johng
Автор

thank you very much, Tim, great content

chinedumgbedoro
Автор

Awesome video 👍
We love console applications 💜

Can you please make course about MSTEST and Live Unit Testing

Thank you 😊

getimad
Автор

Nice vid. ! There will be a newer WPF vid with native builder settings and mvvm ? :)

zarokoshin
Автор

May be I'm too old, but the best for learning "command line" is try to learn more about any unix like os (any linux, gnu, ....) this is working decades and lat few years Windows ecosystem reinvent the wheel :-) all small utilities in linux like sed, grep, are ment to do one thing good so you can pipe more utilities and do a lot. I'm still impresed how smart is unix/linux about utilities and how easily you can use them. When Microsoft realize that clicking with mouse and windows registry is not the right way of doing things they "invented" powershell. But the beauty of Linux/Unix systems is in the long lived principles which are adopted in Windows world after a lot of blind ways of doing things.

Автор

Is there a good way to set the location of the console window? Is there a cross-platform way to do it in net core? Just would like it to consistently be in a certain location, rather than on top of Visual Studio.

danielwilliams
Автор

I have a Console app that uses DirectoryServices to validate login and then it connects to a database to manage assets. I'm used to using HttpS with Web. How does a Console app transmit data and does it need some form of secure connection to protect data in transfer from something like wireshark?

lokinc.
Автор

if you are using Console apps for learning purposes, are there any drawbacks on having multiple consoles projects in a solution?

joeprincipato
Автор

Nice video, try Alt arrow up or down to move a line up or down without cut and paste. Best regards 👍🏼👍🏼

programmingmadeclear
Автор

@IamTimCorey
1. how do we get .exe file
2. What is difference between debug mode and release mode

rachanareddy
Автор

How do we add a new function in the ConsoleApp?

jdang
Автор

Do you have a C# course using .net 6 from beginners to advanced?

gloryforever
Автор

I thought the most common way of doing automation is web apis and class libraries? What are cases where console is best for automation instead of class libraries and web apis? I've done lots of automation stuff with class libraries especially.

andywalter