Ubuntu 18.04下安装DotNet Core 3.1

注册 Microsoft 密钥和源

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

安装 .NET Core SDK

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1

  

 注:如果执行sudo add-apt-repository universe时,提示命令没找到。执行下面的命令:

apt-get install software-properties-common

 

参考网址:https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-ubuntu-1804

文章来自:https://www.cnblogs.com/wzwyc/p/12196134.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3