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