JSN ImageShow - Joomla 1.5 extension (component, module) by JoomlaShine.com

Bravo Mounira!

Mounira Maazaoui, IEEE ENIT SB's Chair has just been selected for the Larry K. Wilson Regional Student Activities Award for the year 2008, and that's for the whole Region 8 !

Read more

Subscribe to the RSS feeds and stay connected with your IEEE Student Branch
Home arrow The Branch's News arrow Latest arrow Intro to .Net Development with Mono
Intro to .Net Development with Mono Print E-mail
Written by Mahmoud M'HIRI   
Saturday, 15 March 2008
Article Index
Intro to .Net Development with Mono
Page 2
Page 3
Page 4
Page 5
How to develop .Net applications under Linux? The ENIT's IEEE Student Branch student member Ghassen Hamrouni have written a great tutorial about Mono, the solution for free .Net development.

1. Mono, The starting point

1.1 installation

1.1.1 introduction

This tutorial will teach you how to get,install and use Mono to develop various types of applications. It comes with many examples

1.1.2 what's .Net ?

.Net is a set of tools originally designed by Microsoft for building various types of applications such as web applications,database applications,server applications ... the framework comes with a large library that covers areas such as user interface,Internet protocols and services, cryptography,XML...

the framework becomes an Ecma standard in December 2001 so that other implementations could be made.

1.1.3 what is mono ?

Mono is an open source implementation of the .net framework it was originally developed by Novell it includes a C# compiler and a Common language runtime as well as some additional features.

With mono you can develop .net applications on Linux,Windows and Mac OS X, with C++,C#,Python or many others languages.

1.1.4 How to install mono ?

Windows users :

All you have to do is to download mono installer, from the mono web page , and to install it.

Linux users :

Some Linux distributions have their own Mono packages like Debian,and Suse.

 

df4sh4f4_1c8r9g9gj.jpg

 

Mono packages in Debian

 

If your distributions doesn't include Mono packages or if you want to download a recent Mono version you will have to follow these steps:
the first thing you will have to do is to get the latest mono installer from here.
In a terminal window just type : 

  1. chmod +x mono-1.2.6_6-installer.bin
  2. ./mono-1.2.3.1_2-installer.bin
 

The first line add execution right to the file ,of course replace the number 1.2.6_6 by your file number.
The second line run the installer.

 

df4sh4f4_2cv7qwsfp.jpg

 

Mono Setup


If we were unable to run Mono in graphical mode try :

  1. ./mono-1.2.3.1_2-installer.bin --mode xwindow
 


or to run installer in text mode :

  1. ./mono-1.2.3.1_2-installer.bin --mode text
 

1.1.5 What I have just installed ?

It depends on the version of installation. The Windows version contains generally The mono runtime environment and the compiler as well as the documentation.
The Linux installation contains in addition the monodevelop IDE.

Monodevelop is an integrated development environement for mono.

1.2 Using Mono, and Third Party Tools

1.2.1 introduction

In this tutorial you will learn how to build a small application using Mono.
You can either use Mono from command line or you will have to use an integrated development environment

1.2.2 Using Mono with command line :

To build an application just type in the command line :

  1. mcs name.cs
 

of course replace name.cs with your file's name.
use mcs compiler to target 1.1 runtime.
if you want to target 2.0 runtime use instead :
  1. gmcs name.cs
 

to run the application type :
  1. mono name.exe
 

to reference an assembly add the -r:name command line option to the compiler
for example :
  1. gmcs -r:Mono.Cairo
 



Last Updated ( Sunday, 16 March 2008 )
 

What's New @ IEEE

What's New @ IEEE email newsletters bring you the latest technical developments career advice and IEEE news.

More

Student Branches

A Student Branch is a basic operating organizational unit of IEEE constituted by a minimum of twenty (20) IEEE Student members at a particular college university or technical institute.

More

Volunteering

Volunteering your time at the IEEE will assist in gaining valuable management and leadership skills for your career.

More

Free Joomla Templates