Detailed steps for deploying the. net core Environment in Linux,. netcore

Source: Internet
Author: User
Tags dotnet linux mint

Detailed steps for deploying the. net core Environment in Linux,. netcore

Note:The. net core installation environment on Linux requires a 64-bit system.

The installation and deployment are as follows:

1. Add the dotnet source to apt-get.

Ubuntu 14.04/Linux Mint 17

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get update

Ubuntu 16.04

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get update

Ubuntu 16.10

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ yakkety main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get update

2. Install. NET Core SDK

The address of the latest SDK is as follows:

Official Address: https://www.microsoft.com/net/download/linux

Local download: http://www.bkjia.com/softs/472366.html

sudo apt-get install dotnet-dev-1.0.1

3. Generate sample code

After the SDK is installed, a sample code is generated to check whether the SDK is successfully installed.

dotnet new console -o hwappcd hwapp

4. Run the sample code to view the result.

dotnet restoredotnet run

If you see the familiar "Hello world" after execution, the installation is successful.

The above is the installation procedure. The deployment and operation will be described in the subsequent blog.

Summary

The above is all about this article. I hope this article will help you or use java. If you have any questions, please leave a message. Thank you for your support.

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.