How to resolve ASP.NET add-in not found in MonoDevelop on Ubuntu 16.04

Normally, installation and usage of Mono and MonoDevelop works fine for developing ASP.NET / MVC web projects. It has worked perfectly for me in Ubuntu 14.04, 14.10, and Debian Jessie and Stretch for ages.

Unfortunately, MonoDevelop is broken in Ubuntu 16.04 for ASP.NET projects.

This is how to resolve the issue:

Firstly, setup using the following commands, which are as per the official Mono installation instructions, but with the change from wheezy to alpha.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

Then, install Mono itself:

sudo apt-get install mono-devel mono-complete ca-certificates-mono mono-xsp4

Then, to install the specific version of MonoDevelop that gives you a working ASP.NET add-in:

sudo apt-get install monodevelop=5.10.0.871-0xamarin2

I am not completely happy with this solution, obviously. A mainstream distribution such as Ubuntu (and especially their current LTS) should not have these kinds of regression issues. However, we at least have a resolution to the issue.

Of note is that Fedora Workstation 23 has a working Mono/MonoDevelop/ASP.NET environment straight out of the box. While I have previously been a Debian/Ubuntu user, this issue was enough to push me across to Fedora, where I have been happily working away without a single bug or other issue.

Will I stay with Fedora? That’s uncertain, but it has certainly been a pleasure to find an enjoyable and stable alternative to Ubuntu.

 

Posted on May 24, 2016 in Articles & How To | Tags: TechnologyLinuxUbuntu16.04ASP.NETMonoDevelopMono