CentOS deployment. NET Core Runtime Environment

Source: Internet
Author: User
Tags dotnet

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.