Your cart
  • IMG
    {{cart_item.name}}
    {{cart_item.variation_attribute_name}}: {{cart_item.variation_attribute_label}}
    {{cart_item.item_unit}}: {{ setCurrency(cart_item.price)}}
    {{ setCurrency(cart_item.price*cart_item.quantity)}}
    Invalid quantity more than stock
Total :
{{setCurrency(cart.sub_total)}}

There is no item in the cart. If you want to buy, Please click here.

Install Dotnet Core on Ubuntu 20.04

Complete guide to start Linux OS and install essential applications in Linux

Created by :
Linux
tutorial
Programming, Software and application
1416
2022-01-09 18:30:29

DotNET is a free and open-source, managed computer software framework for Windows, Linux, and macOS operating systems. It is a cross-platform successor to .NET Framework. The project is primarily developed by Microsoft employees by way of the .NET


In this article will help to install dotnet core on Ubuntu 20.04


Step 1: Enable Microsoft PPA

Personal Package Archives (PPAs) are software repositories designed for Ubuntu users and are easier to install than other third-party repositories. PPAs are often used to distribute pre-release software so that it can be tested.


First of all, enable Microsoft packages repository on your Ubuntu system. The Microsoft official team provides a debian packages to setup PPA on your system.


wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb 
sudo dpkg -i packages-microsoft-prod.deb 


Step 2 – Installing Dotnet Core SDK

.NET Core SDK is the Software development kit used for developing applications. If you are going to create a application or making changes to existing application, you will required .net core sdk package on your system.


To install .NET Core SDK on Ubuntu 20.04 LTS system, execute the commands:


sudo apt update 
sudo apt install apt-transport-https 
sudo apt install dotnet-sdk-3.1 


Step 3 – Install Dotnet Core Runtime Only

.NET Core Runtime is required for the system, where you only need to run application. For example, production or stating environments are required to run applications only.


To install .NET Core Runtime on Ubuntu 20.04 LTS system, execute the commands:


sudo apt update 
sudo apt install apt-transport-https 
sudo apt install dotnet-runtime-3.1 


Step 4 – Check .NET Core Version

You can use dotnet command line utility to check installed version of .NET Core on your system. To check dotnet version, type:


dotnet --version


3.1.401


Step 5 – Create Sample Application

Let’s create a sample application with dotnet core on your Ubuntu system. Create a new console application with the command:


dotnet new console -o HelloWorld

The Above command will create dotnet application on your system. This will create a directory named “helloworld” in under the current directory. You can change to this directory and start working your application.


cd HelloWorld

Make your changes to application and execute below command to run this application.


dotnet run

You will see the below output on terminal. 3


dotnet core hello world example


 

 Thanks