Ubuntu 16.04 安装.net core

1、Ubuntu 16.04 安装.net core

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

参考网址: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

检查安装信息

1

dotnet --info

运行dotnet程序

1

dotnet  xxx.dll文件

  

猜你喜欢

转载自blog.csdn.net/ayang1986/article/details/121302578