Using Mono as Csharp (C#) cross platform development

Mono 2.8 as C# .NET 4 platform development

  • mcs: compiler to target 1.1 runtime (to be deprecated with Mono 2.8).
  • gmcs: compiler to target the 2.0 runtime.
  • smcs: compiler to target the 2.1 runtime, to build Moonlight applications.
  • dmcs: Starting with Mono 2.6 this command is the C# 4.0 compiler, and references the 4.0 runtime.

**

Go directly to MonoDevelop site for Windows package download. For linux, I prefer apt-get install monodevelop. To connect to mysql, download mysql-connector-net-version-noinstall.zip for linux. After extraction, rename mysql.data.dll into MySql.Data.dll

#gacutil /i MySql.Data.dll

If above step is successful, you will have /usr/lib/mono/gac/MySql.Data/ folder

Add this library using  Project>Edit References>.Net Assembly>[drill down to the file MySql.Data.dll in /usr/lib/mono/gac/MySql.Data/[you may need to go further but depends on the version you have on your system] then select the dll file and click ‘Add’ button.

Advertisements
Posted in Linux, Programming/Notes, Windows

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: