Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run a C# windows form application on my server which has Ubuntu Server 12.04. I have installed mono on the server already but am not sure how to move forward. Should I just build/publish my code in windows, put it on a USB and transfer it to the Ubuntu machine? or is there another procedure.

My C# forms application was developed using Visual Studio 2012 and I have installed Mono JIT compiler version Please advice me if I need to update my version of Mono to be compatible with the C# forms application.

share|improve this question

I assume that by forms you mean winforms. The winforms support is not part of the main mono install so you will have to install it, to do this you need run the following command:

sudo apt-get install libmono-winforms2.0-cil

Copy the built binaries to the ubuntu machine.

Run your program using:

mono YourProgram.exe

Be aware that your success here depends on how cross platform your code is:

  • Do you assume a new line character anywhere? (use Enviroment.NewLine)
  • Do you assume path seperator anywhere? (use Path.Combine)
  • WinForms on mono may not have perfect support for all winform features
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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