Install .net core on Ubuntu 16.04

1. Install .net core on Ubuntu 16.04

  • Register the Microsoft key
  • register the product repository
  • Install required dependencies

Reference URL: https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-ubuntu-1604

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

Install the .NET Core SDK

sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2

Install the ASP.NET Core runtime

sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install aspnetcore-runtime-2.2

Install the ASP.NET Core runtime

sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-runtime-2.2

Check installation information

1

dotnet --info

run dotnet program

1

dotnet  xxx.dll文件

  

Guess you like

Origin blog.csdn.net/ayang1986/article/details/121302578