VB.NET programming in Ubuntu

Use MonoDevelop but beware of the quirks of X-platform .NET development

First, install mono by either finding it in the Software Centre or typing

sudo apt-get install monodevelop mono-vbnc

MonoDevelop is pretty equivalent to Visual Studio Express the major differences being:

  • MonoDevelop doesn't support WPF (Windows Presentation Foundation) but that shouldn't matter much as Microsoft has plans to kill WPF with the arrival of Windows 8.

  • Verify that the correct .NET framework target is being used. After creating a solution, right click on the project and goto Options->Build->General. Not much different from targeting a specific version of .NET on Windows.

Aside from those issues, I haven't really found anything missing that I can't live without.

The only other issue (non mono related) that may come back to bite you is the classic line ending problem. *nix still uses LF and Windows still uses CRLF for line endings so, when you transfer your source files back and fourth between Windows/*nix. AFIAK, MonoDevelop saves source files in UTF-8 by default but VS saves source files in Windows ASCII (with windows-1252 latin ASCII with windows specific line endings). If you receive source files that were created using Visual Studio you may need to convert the format to get it to work in *nix.

As you can see, x-platform .NET development can be a little challenging at first but IMHO, it's worth it. I like MonoDevelop's non-cluttered interface (the visual effects in VS just get in the way most of the time), it loads in a fraction of the time that VS does (useful if you don't typically leave your IDE open all the time), it takes up a fraction of the space with no extra unnecessary addons (VS is really obnoxious about this).

Installing it was easy as sudo apt-get install monodevelop. Also, popular tools like NUnit (for unit testing) have been ported over to and work flawlessly in *nix. The Windows version of MonoDevelop kinda sucks (or at least it did last time I tried it).

Update:

To get VB code to compile you'll also need to install the VB compiler module:

sudo apt-get install mono-vbnc

I also updated this answer to remove some of the problems that are no longer relevant.


It really depends on your syllabus.

Mono does have VB.NET language support but the framework is somewhat different in places and I'd predict that as much of your work will be about the .NET framework as it is the core language. It might not be as it sounds like it's at a fairly elemental level (no offence intended!)

Even if the work is just language-orientated, as you say, you're not going to get the silly Visual Studio meta project files. You could have problems opening things and (again, as you say) you'll definitely have problems getting things to other (perhaps less competent) people.

With this the case, and you still want Ubuntu as your main system, VirtualBox sounds like the best way of remaining compatible with your coursework. It's much more convenient than dual-booting but it requires you have a more-than-average computer for a good experience (especially with something stodgy like VS.NET).

Or beat your teacher into learning and teaching Python. By far a simpler and better language.