C# on Non-MSFT OS's?

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.
 
T

Teemu Keiski

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.
 
O

Obergfell, Joe

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.
 
J

john smith

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.
 
J

John Bailo

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.
 
J

Jon Skeet [C# MVP]

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);
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top