Installing ASP. NET 5 on Mac OS X

Source: Internet
Author: User

The ASP. NET 5 runs on a execution environment (DNX) that is available on multiple platforms, including OS X. This article describes how to install DNX and ASP. NET 5 on OS X via homebrew.

This article includes:

    • Install ASP. NET on OS X
Install ASP. NET on OS X

The ASP. NET 5 requires the installation and configuration of the operating environment of ASP. Execution Environment (DNX). DNVM can be easily installed with a tool called homebrew, which also installs the correct version of mono for OS X.

Installing homebrew

If you have not installed homebrew, you can complete the installation by following the command line script:

"$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" 

The installer will prompt you before each step of the installation, and you can click here to learn more about Homebrew .

Install. NET Version Manager (DNVM)

After the homebrew is installed, run it in the console window.

Brew Tap Aspnet/dnx

To install the DNVM. If you need to upgrade the version of DNVM, run it first

Brew Untap Aspnet/dnx

To remove the old command, and then run

Brew Tap Aspnet/dnx

command to get the upgrade script back.

If you install an older version of homebrew, the "tap" configuration may get the following error:

Could not create link for ASPNET/DNX/KVM, as it conflicts with aspnet/ K/kvm

The solution is:
Run

Brew Uninstall KVM

Ensure that older versions of KVM are removed and run

Brew Untap aspnet/k

Remove the tap, last run

Brew Tap Aspnet/dnx

command to complete the installation successfully.

And then run

Brew Intstall DNVM

command to install. NET Version Manager. The command will also automatically install the latest DNX package from the Https://www.nuget.org/api/v2 seed.

Then run DNVM to confirm that the installation is correct. If not, run the source dnvm.sh command, and run DNVM again. You should see a message like this:

Install the latest version of DNX with DNVM, run:

DNVM Upgrade

Now that the DNX is installed, you can start using ASP. NET 5. Learn how to create a cross-platform console application or a simple ASP. NET MVC application and run under DNX.

Summarize

The ASP. NET 5 is built on a cross-platform, OS-x,linux, Windows-based, operating environment. Installing DNX and ASP. NET 5 on OS X just takes a few minutes and a few commands.

Original address: http://docs.asp.net/en/latest/getting-started/installing-on-mac.html

Installing ASP. NET 5 on Mac OS X

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.