I use .NET for building WebAPI’s because all other stuff is mostly done using AngularJS and/or NodeJS in these days. But since the increadible change that Microsoft is living in these days, I can finally get rid of my virtual development machine :)
In order to get ASP.NET vNext up and running on your Mac, you’ve of course to use Mono. In the case you’ve already installed Xamarin on your system, you may run into the issue that your Mono version is outdated.
Xamarin’s documentation doesn’t mention anything regarding support for latest vanilla Mono runtime. Cause of that I’d to uninstall Xamarin and it’s own Mono build. They Xamarin site is offering a good guide which explains how to remove Xamarin and all it’s dependencies.
You should install Homebrew to manage all the software dependencies on your Mac - this is not related to ASP.NET vNext - brew is mandatory on each and every Mac :D
Once brew is installed, you can easily install Mono using
brew install mono
I followed the guide step by step, at the end my terminal was broken and I wasn’t able to start neither iTerm nor Bash. :(
The KVM installation script is adding the KVM registration into both .zshrc and .bashrc which looks like the following
[ -s "/Users/<<USERNAME>>/.kre/kvm/kvm.sh" ] && . "/Users/<<USERNAME>>/.kre/kvm/kvm.sh" # Load kvm
More information on that issue can be found here.
If you run in the same issue, you should ensure that you’ve trapped the most recent version of aspnet/home. The problem is fixed in Master branch since 12th of November 2014.
For all forks, clones done before that date you will perhaps run into the same issue. You can either pull the latest version of you can alter the link to kvm.sh in kvminstall.sh line 30 and point that one to the most recent version.