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

检查安装信息

dotnet --info

 

运行dotnet程序

dotnet  xxx.dll文件

  

  

 

posted @ 2019-12-03 15:24  草莓爸  阅读(1265)  评论(0编辑  收藏  举报