1. Add Yum Source
sudo rpm--import https://packages.microsoft.com/keys/microsoft.asc
sudo 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"
2. Installing the. NET Core runtime
Yum Install dotnet-runtime-2.0.5.x86_64
3. Run the. NET core program with the Test directory: Test.deps.json, Test.dll, test.pdb, Test.runtimeconfig.json. JSON configuration files are not limited
CD Test
Dotnet Test.dll
If prompted: couldn ' t find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to True if your want to run with no globalization support
Icu:yum Install ICU is required
Run successfully!
CentOS deployment. NET Core Runtime Environment