ASP. NET core environment and run continue across platforms

Source: Internet
Author: User

ASP. NET core environment and run continue across platforms

Without the need to install mono, build an ASP. NET core environment under Linux (Ubuntu). NET Cross-platform

Previous article: Using vs code to develop an ASP. NET Core Application

Learn about ASP. NET Core runs in Ubuntu today. No need to install mono.

Environment

Ubuntu 14.04.4 LTS Server version of the new installation system.

: Http://mirrors.neusoft.edu.cn/ubuntu-releases/14.04.4/ubuntu-14.04.4-server-amd64.iso

You can also download the desktop version of the installation.

: http://mirrors.neusoft.edu.cn/ubuntu-releases/14.04.4/

Installing DNVM

First make sure that unzip and curl are installed

sudo apt-get install unzip curl

Download and install DNVM

Curl-ssl https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | Dnx_branch=dev sh && Source ~/.dnx/dnvm/dnvm.sh

After the installation is complete, run DNVM such that the installation is successful.

Installing DNX

Installing DNX for. NET Core

1. Installation of DNX necessary environment

sudo apt-get install Libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev Uuid-dev

2. Install DNX for. NET Core using DNVM

DNVM Upgrade-r CORECLR

Installing LIBUV
sudo apt-get install make automake libtool Curlcurl-ssl https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv--c/usr/local/srccd/usr/local/src/libuv-1.8.0sudo sh autogen.shsudo./configuresudo makesudo Make Install sudo rm-rf/usr/local/src/libuv-1.8.0 && cd ~/sudo ldconfig

Now that the environment is installed, let's deploy the project.

Upload your project to Ubuntu.

Go to the project directory and run the command below.

--framework DNXCORE50DNX Web

Run successfully:

Reference Documentation:

Https://docs.asp.net/en/latest/getting-started/installing-on-linux.html

If you think this article is helpful to you, please click " recommend ", thank you.

Category: ASP. NET Core

ASP. NET core environment and run continue across platforms

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.