With the introduction of .NET Core developing .NET applications is now quite easy πŸ˜€.

In this tutorial we will see how to create a Hello World! application using command prompt 😎. The same using visual studio was discussed in an earlier article.

For this tutorial what you need is a computer with any operating system. (power of cross platform πŸ˜‰)

  1. Download the .NET Core SDK. You can get it from here. Download the correct SDK based on your OS.
  2. Install the SDK on the computer.
  3. Open command prompt (Windows)/terminal(Linux/Mac-OS) and check whether SDK installed successfully by entering below command

    Entering the above command shows the below screen

    If you see this you are good to go πŸ™‚ else there is some issue with installation πŸ˜₯
  4. Β Now we are going to create our new app. Enter the below codes in command prompt

    When you execute the above command the dotnet SDK will create a new console application with name HelloWorld. The -oΒ creates a new directory in the name of application i.e HelloWorld. the cd or changeΒ directory command changes the directory to HelloWorld
  5. Now a folder named HelloWorld is created with a file program.csΒ which contains the default code shown below
  6. Now to run the application enter the below command

    The moment of truth

    Success! πŸ”₯
    Build Pass βœ”

    Now you are an official C# and .NET Developer, as I said earlier at the tip of the ice berg 😁.

Last modified: 8th July 2019