Winternet

C# Hello World in Mono on Windows

Filed under: — jwinter on 5/31/2005 at 10:47 pm

The following are the basic steps for quickly getting Mono up and running on Windows.

  1. Download the Mono Installer for Windows. This installs Mono, Gtk#, and XSP (a webserver for serving ASP.NET applications).
  2. Save the following code into a file called HelloWorld.cs
    
    using System;
    public class HelloWorld {
          public static void Main(string[] args) {
             Console.WriteLine("Hello World");
          }
    }
    
    
  3. Click Start–>Mono 1.x.x for Windows–>Mono-1.x.x Command Prompt. This should bring up a terminal window with the Mono directory added to your path. This way gmcs, mono, etc. will work from whatever directory you are currently in.
  4. Type gmcs HelloWorld.cs into the Command Prompt to compile your source code.
  5. Type mono HelloWorld.exe into the Command Prompt to run the program.

Nothing complicated, but I was looking around for something to make sure that the basics were configured correctly.

Elements of a URI

Filed under: — jwinter on 5/19/2005 at 4:25 pm

This doesn’t come up a whole lot, but the URI in BNF-like format from the W3 makes it easy to answer questions about what belongs where in a URL.

For example: which comes first ? or #? (Answer: ?).

Susan Senator

Filed under: — jwinter on 5/8/2005 at 4:54 pm

Susan Senator is a writer whose done some really excellent essays on autism. She has a new book out called Making Peace with Autism.

0.048 || Powered by WordPress