CentOS 7 installs. NET core__.net

Source: Internet
Author: User
Tags dotnet mkdir

From. NET Core website 1. Install the. NET Core SDK

Before you begin, remove all previous. NET core versions from the system.
In order to be able to install. Net Core in CentOS or Oracle Linux: First, prepare prerequisites

sudo yum install libunwind Libicu
download the. NET Core SDK binaries
Curl-ssl-o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=809131
unzip these files to the system
sudo mkdir-p/opt/dotnet && sudo tar zxf dotnet.tar.gz-c/opt/dotnet
dotnet Add to PATH environment variable Tim.
sudo ln-s/opt/dotnet/dotnet/usr/local/bin
2. Initializing Code

Initialize a Hello World Application Sample!

mkdir hwapp
cd Hwapp
dotnet New
3. Run the program

The first line of command restores the specified package file according to Project.json, and the second line actually launches the program:

dotnet Restore
dotnet Run
Be ready!

You are now running on your machine using the. NET core.
You can create a asp.net core Web site, or get more examples by accessing the. NET core on GitHub. Browse. NET documentation to learn more about. NET core, use our interactive online tutorials, or learn more about. NET core through community consulting. need tools?

Visual Studio Code can run on Linux and fully support. NET Core. Download the free Visual Studio Code and install the C # Extension from the market to start the best experience.

Related Article

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.