C# on Non-MSFT OS's?

  • Thread starter Thread starter Obergfell, Joe
  • Start date Start date
O

Obergfell, Joe

Sorry if this is an ignorant question but I am just shooting in the dark
here...

I am just wondering if it is possible to have C# on non Microsoft
Operating Systems. Like, lets say.... Linux. Is anyone out there using
a Linux distro and running C# and/or Visual Studio 200x (2002/2003/2005)
on their computer.

Thanks in advance for any information one way or the other.
 
Hi,

check Mono project
http://www.mono-project.com/Main_Page

E.g not VS200x, since MS has developed it only to work on its platforms, but
C# etc follows certain standards & specifications so basically you can have
a C# compiler and execution platform on non-MS OS's and that's what Mono is
about.
 
Teemu said:
Hi,

check Mono project
http://www.mono-project.com/Main_Page

E.g not VS200x, since MS has developed it only to work on its platforms, but
C# etc follows certain standards & specifications so basically you can have
a C# compiler and execution platform on non-MS OS's and that's what Mono is
about.
Thanks guys, I see that it has been developed by Novell. Which this is
great, since I do support them and all. This shall help in my
development, reguardless what platform I am working in.
 
Thanks guys, I see that it has been developed by Novell. Which this is
great, since I do support them and all. This shall help in my
development, reguardless what platform I am working in.

Mono isn't fully compatible with .NET, and AFAIK doesn't have any of the
..NET 2.0 stuff yet, so don't get too excited just yet. Also, there is
Grasshopper that will let you run your .NET apps as a J2EE app (it does
MS IL to Java bytecode translation) on a J2EE app server (WebShpere,
JBoss, Tomcat or whatever): http://dev.mainsoft.com/Default.aspx?tabid=28

I'm not a big fan of either but they're the only ways to use your .NET
code on something else than Windows.
 
You can also continue to work in VS.NET/Windows and port to Linux/Mono
using the Grasshopper plug-in for VS.NET from Mainsoft.
 
john smith said:
Mono isn't fully compatible with .NET, and AFAIK doesn't have any of the
.NET 2.0 stuff yet, so don't get too excited just yet.

Actually, it's had some .NET 2.0 stuff for a very long time - much
longer than .NET 2.0 has been released!

For instance, this program compiles absolutely fine with gmcs and runs
appropriately with mono:

using System;
using System.Collections.Generic;

class Test
{
static void Main()
{
List<int> x = new List<int>();
x.Add(5);
int y = x[0];
Console.WriteLine (y);
}
}
 
Back
Top