The simplest way to experience ASP. NET 5 on your Mac without writing 1 lines of code

Source: Internet
Author: User

The curiosity of ASP. NET 5 was sparked by Microsoft's release of ASP. NET 5 Beta2 (see ASP. 5 BETA2 release) yesterday.

This afternoon on Mac OS X, I experienced an ASP. NET 5 Beta2, and with Yeoman generators for ASP. 5, you can not write 1 lines of code, even Project.json do not write. There is a feeling of a Mac under Visual Studio.

Here's a look at the actual procedure:

1. Install the Package Manager for OS X: Homebrew

2. Add the ASP. NET 5 code base on GitHub to brew: Brew tap aspnet/k

3. KVM Install ASP. 5: Brew Install KVM (mono is installed at this point)

4. Add the KVM command to Terminal: source kvm.sh (otherwise "-bash:kvm:command not Found" error when running the KVM command)

6. Install the node. JS Environment: node. JS (in order to install Yeoman generators for ASP. 5)

7. Install yeoman generators for ASP. 5: sudo npm install-g yo generator-aspnet

8. Run yeoman generators for ASP. NET 5 to create an ASP. NET 5 project:

A) Run command yo ASPNET

b) Select Web Application

c) in ? What ' s the name of your ASP. Application? (WebApplication) When you enter the project name, such as HelloAspNet5

d) Then yeoman generators will automatically create the files required for the ASP. NET 5 project:

e) The directory structure in the HelloAspNet5 folder is as follows:

9. Install the package required to run the ASP. NET 5 project: KPM Restore

10. Run ASP. NET 5 project: K Kestrel

11. Browser access to the site (URL in the Project.json file kestrel the Server.urls section):

Resources

Yeoman generators for ASP. 5

The simplest way to experience ASP. NET 5 on your Mac without writing 1 lines of code

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.