DevNation
DevNation

DevNation

How to Install Dot Net core 3.1 on digital ocean and create c# console app

How to Install Dot Net core 3.1 on digital ocean and create c# console app

DevNation's photo
DevNation
·Mar 23, 2022·

1 min read

Table of contents

Check the ubuntu version by using this command

$ lsb_release -a

dotnetcore_1.png

Let’s Add the Microsoft package signing key

$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

dotnetcore_2.png

run the command below

$ sudo dpkg -i packages-microsoft-prod.deb

dotnetcore_3.png

Install .NET core 3.1 on Ubuntu 20.04

$ sudo apt-get install -y apt-transport-https

$ sudo apt-get update

$ sudo apt-get install -y dotnet-sdk-3.1

dotnetcore_4.png

dotnetcore_5.png

dotnetcore_6.png

Verify the installation by using the command below

$ dotnet --info

dotnetcore_7.png

Create c# console application

$ dotnet new console -o hellowordapplication

consoleappc#_1.png

run the application

$ cd hellowordapplication

$ dotnet run

consoleapp_c#_2.png

 
Share this