I use .NET for building WebAPI’s because all other stuff is mostly done using AngularJS and Node.js in these days. However, since the incredible change that Microsoft is living these days, I can finally get rid of my virtual development machine 🙂
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 its 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 every Mac 😀
Once Homebrew is installed, you can easily install Mono using
brew install mono
When following the guide from aspnet/home I ran into some strange issues, caused by the fact that the link to kvm
in kvminstall.sh is pointing to an outdated version of KVM.
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 the master
branch since 12th of November 2014.
If you’ve forked or cloned before that day, it could be possible that you run into the same issue. So you can either pull the latest version of you can change the link to kvm.sh
in kvminstall.sh
line 30
and point that one to the most recent version.