Build an ASP. NET 5 development environment in Ubuntu

Source: Internet
Author: User

Build an ASP. NET 5 development environment in Ubuntu
0x00 nonsense written in front

At the end of the year, I was so busy that I had no time to learn what I was interested in. So I didn't even write my blog. Recently, there was a small function to be used as a Web application. Previously, similar requirements were raised. At that time, WCF was used for WebAPI and ExtJS was used for the front-end. This requirement is not critical, as long as the problem can be solved, the specific technology does not matter, just catch up with ASP. NET 5 release, so I plan to try it. In Windows, the powerful VS solution is used to solve the problem. However, ASP. NET5 is a cross-platform solution. I decided to try to deploy the development environment in Linux. In the future, it will be more convincing to fool others. I have been using Windows for a long time. I just installed Linux out of curiosity. So I am not very familiar with Linux. I checked and did it. During this period, I naturally encountered various pitfalls and had a hard time working for more than a day, however, we finally ran it. here we will record the pitfalls we encountered, the solutions we encountered, and the unsolved problems.

0x01 Windows and Ubuntu

I used virtual machines to install Linux. Now I want to test it carefully. I have allocated GB space from the hard disk and installed Ubuntu dual-system according to the tutorial on the Internet. However, this is not the focus of this article, and it is easy to find a large number of tutorials. This article I refer:

0x02 install the ASP. NET 5 Development Environment

The following focuses on the process. Refer to Microsoft's official documentation for the main steps:
Https://docs.asp.net/en/latest/getting-started/installing-on-linux.html
First, let's explain the first pitfall we step on. Because many commands require sudo, sudo bash switches the terminal to the root, the consequence is that some of the folders created later are root, resulting in a permission error when using yo to create a project under non-root, which took a lot of time to locate the problem. Therefore, we recommend that you use sudo in an honest and practical manner to avoid unnecessary troubles. We can see below that I still use the root. Don't do this.

1. Install DNVM

First, prepare the tools used to build the development environment. In general, the system is likely to come with it, but in case it is still running, it is also very fast:

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.