安装

添加源

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list

安装

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

运行

  • 在Win下编译好.Net Core相关文件并上传到Ubuntu
  • 输入以下命令运行
//运行程序但关闭命令行会停止
dotnet **.dll

//关闭命令行不会停止
nohup dotnet **.dll
Last modification:July 19th, 2020 at 05:59 pm
如果觉得我的文章对你有用,请随意赞赏