Member-only story
Intro:
In my previous article I explained how .NET Core takes source code, compiles it and outputs an executable that can be ran on any OS. In this article I will use the CLI to create a console application on Ubuntu that will output hello world to the console.
Purpose:
I will demonstrate how .NET Core is cross platform and can run on any architecture by creating a .NET Core console application that runs on Ubuntu.
Is there a Microsoft PPA?
Yes, to enable the Microsoft package repository, open up a terminal:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Is there a Dotnet Core SDK?
Since you have the Microsoft office repository setup on your system, lets get the latest SDK
sudo apt install dotnet-sdk-3.1
How to install Dotnet Core Runtime?
sudo apt install dotnet-runtime-2.1
What templates are available?
To see what templates are available execute:
dotnet new — list

To create a console application you would execute: