ubuntu上的安装.netcore2.1

  • .net core 在ubuntu上安装比较容易,依次执行正面语句即可
sudo apt-get install curl
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
  •  安装成功后,可以查看.netcore版本信息
dotnet --info

posted @ 2019-05-30 19:11  低调码农哥!  阅读(2630)  评论(0编辑  收藏  举报