1、安装 .net core 环境
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c ‘echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl= https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo‘
yum update yum install libunwind libicu yum install dotnet-sdk-2.0.2
2、运行
dotnet new console -o myApp cd myApp