This post originated from an RSS feed registered with .NET Buzz
by Sam Gentile.
Original Post: Alternate CLI Mono on Mandrake Linux
Feed Title: Sam Gentile's Blog
Feed URL: http://samgentile.com/blog/Rss.aspx
Feed Description: .NET and Software Development from an experienced perspective - .NET/CLR, Rotor, Interop, MC+/C++, COM+, ES, Mac OS X, Extreme Programming and More!
Periodically during the 90's I would play with some flavor of Linux to see where they were at. I haven't bothered for years. Just for the hell of it, I installed Mandrakelinux 10.1 Community Edition. I'm pretty amazed at the current level of GUI install and KDE. I didn't see a command line once and it even resized my NTFS partition to make room. I am doing this from Mozilla on KDE. Anyhow, I wanted to check out alternate CLIs again and I started with Mono this time. I downloaded the source code and it amazingly built and installed the first time. Here is my first program:
using System; namespace Sam
{
class GetInfo
{
static void Main()
{
GetInfo info = new GetInfo();
}
public GetInfo()
{
Console.WriteLine("Operating system: " +
Environment.OSVersion.Platform.ToString());
Console.WriteLine("OS Version: " +
Environment.OSVersion.Version.ToString());
Console.WriteLine("Today's date is: " +
DateTime.Today.ToString());
}
}
}
And here is my first running program!
[root@localhost mono-1.1.3]# mcs GetInfo.cs
Compilation succeeded
[root@localhost mono-1.1.3]# mono GetInfo.exe
Operating system: 128
OS Version: 2.6.8.1
Today's date is: 12/12/2004 12:00:00 AM
Except the date is off. It's 3:34 AM!!