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