In this tutorial, we will learn the following things.
First of all, we should learn what is .NET Core.
.NET Core is an open source, lightweight and cross-platform(MacOS, Linux, Windows) provided by Microsoft for building modern web apps and services, IoT services and mobile back-end.
Before creating the .NET Core project you need to
Create new directory or open an empty directory in command prompt window
Navigate to the new directory
Create new console project, but we can create ASP.NET Core project here (We will cover up later)
Restore all the necessary dependency and tools for our console app from NuGet (which is package manager)
After restoring finish, we can run our project to see the output or we can build the project first by using dotnet build command.
Now change the output
Open your project in Visual Studio Code or any other editor by right click on project folder and open
Now open the Program.cs file and change the text
After change “Hello World” to “My first app” run the command dotnet run to see the changed output
Now you can create cross-platform console app, and in the next tutorial, we will learn that how to create ASP.NET Core cross-platform web app.