Skip to content

Hello World

For a first project, we’ll enter some very simple code and compile it. This should establish that your setup is in good shape.

Enter Code

In file named ‘HelloWorld.cs’, enter the following:

using System;
using TaxControls;
class HelloWorld{
public static void Main(){
CTaxControl tc = new CTaxControl();
Console.WriteLine(tc.SoftwareVersion);
}
}

Compile

Compile the code at the command prompt by executing the following:

Terminal window
csc /reference:TaxControls.dll HelloWorld.cs

Run

Run the program by typing:

Terminal window
HelloWorld

You should see output similar to:

1.6.6.0