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
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