Install. NET Core in CentOS 7

Source: Internet
Author: User

Install. NET Core in CentOS 7
1. Install. Net Core SDK

Before starting, remove all previous. net core versions from the system.
To install. Net Core in CentOS or Oracle Linux:

First, prepare the prerequisites.
sudo yum install libunwind libicu
Download the. net Core SDK binary file
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=809131
Decompress these files to the system.
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
Add dotnet to PATH environment variable.
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
2. Initialization code

InitializeHello WorldApplication example!

mkdir hwappcd hwappdotnet new
3. Run the program

The first line of command will be based onproject.jsonRestore the specified package file. The second line of command actually starts the program:

dotnet restoredotnet run
Ready!

You have used. NET core to run on your machine! You can create an ASP. NET Core website or visit. NET Core on GitHub to obtain more examples. Browse the. NET document to learn

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.