0

Which is the better option for running C# programs in Ubuntu?

  • using Mono and compiling in the terminal
  • Microsoft Visual Studio Code
  • Microsoft .NET SDK.
1
  • Just running or developing? – Melebius Nov 20 '18 at 9:59
3

The terminal and MonoDevelop (monodevelop) from the default Ubuntu repositories is maybe all you need, and Visual Studio Code doesn't live up to its full potential until you install lots of software to go with it. It's amazing how fast Visual Studio Code can chew up a gigabyte of disk space when it turns your Ubuntu into a Windows development environment.

If you don't stop there you need to grant root access to some fancy development software to keep going. Visual Studio Code treats every platform as if it's Windows, so sometimes the extra software you installed doesn't work. Visual Studio Code doesn't warn you about this, so you need to install the software in order to find out if it works or not. Finally you have a Microsoft epiphany moment when you realize that Visual Studio Code is a fancy code editor, not an IDE, and you need to buy the latest version of Windows and install Visual Studio in it. All this is optional, so in Ubuntu 17.10 and earlier you're better off starting with the lightweight MonoDevelop IDE and see how it goes.

MonoDevelop can be installed from the default Ubuntu repositories in Ubuntu 17.10 and earlier. This link tells how to run C# programs from the terminal and in MonoDevelop: How do I install Mono for 17.10?


The wonderful C# is open source and cross platform now that Microsoft has released a version of .NET Core, and it's blazingly fast. To install .NET Core in Ubuntu open the terminal and type:

sudo snap install dotnet-sdk

Not the answer you're looking for? Browse other questions tagged or ask your own question.