Writing Your First Program With Mono And MonoDevelop
Installing Mono And MonoDevelop on Gentoo and Debian/Ubuntu(5.10)
Installing Mono And MonoDevelop K/Ubuntu(6.06)
Mono applications can be developed using any text editor and the mono compiler(mcs). Type the following program in your favourite editor:
[csharp]
using System;
namespace FirstMono
{
class Hello
{
public static void Main(string[] args)
{
Console.WriteLine(“Hello World!”);
}
}
}
[/csharp]

Now go to a shell prompt and compile and run the program:
sh# mono Hello.exe
You can copy the same Hello.exe file to a Windows machine and execute it there; you get the same output.
To create a C# application using the MonoDevelop development environment, follow these simple steps:

Most of the frequently used operations(like “Build Solution”, “Run” etc) can be invoked from the toolbar buttons too.
9 comments
The rules are like this:
Instead of explaining all this in every example on Mono, people generally tend to just say ‘execute the Mono app using `./HelloWorld.exe`’ and let the user use whatever is appropriate in their case. I have adjusted the post to now use ‘mono’ to run the application.
You can access the Crystal Reports from C#/Mono on Windows platform. Because CrystalReports.NET makes use of Win32 and COM API, it is not available on gnu/linux platform. You can access Crystal Reports.NET from Mono using the Web Service interface on either platform. ActiveReports is also not available on gnu/linux platform.
Hi,
I’ve gotten everything to work wonderfully with Suse Linux Enterprise Desktop 10 except one thing. Every example I see shows that you can run a .net application directly from the command line. I always have to use mono to execute the binary. If I were to run ./HelloWorld.exe from the command prompt I get “cannot execute binary file” but by running it this way “mono HelloWorld.exe” everything works well. What am I missing? I have also checked to make sure the binary file is marked executable and group, user, and other has permission to execute.